public PictureContentModule ( System.TimeSpan expireTime ) : System | ||
expireTime | System.TimeSpan | |
return | System |
public PictureContentModule(TimeSpan expireTime)
{
this.expires = (DateTime.Now + expireTime).ToString ("R");
this.cacheControl = "max-age=" + ((int)expireTime.TotalSeconds).ToString ();
this.etagCache = new ConcurrentDictionary<string, string> ();
Get (".*", MatchType.Regex, Content);
}
PictureContentModule::PictureContentModule ( ) : System |