public StaticContentModule(string dir,
IEnumerable<string> cacheExtensions,
TimeSpan expireTime)
{
if (string.IsNullOrEmpty (dir))
return;
if (dir.StartsWith (Path.PathSeparator.ToString ()))
dir = dir.Substring (1);
this.cacheExtensions = new HashSet<string> (cacheExtensions);
this.expires = (DateTime.Now + expireTime).ToString ("R");
this.cacheControl = "max-age=" + ((int)expireTime.TotalSeconds).ToString ();
this.etagCache = new ConcurrentDictionary<string, string> ();
fsw = new FileSystemWatcher (dir);
InitFileSystemWatcher (dir);
rootedPath = Path.Combine (Environment.CurrentDirectory, dir);
Get (".*", MatchType.Regex, Content);
}