Apachai.StaticContentModule.StaticContentModule C# (CSharp) Метод

StaticContentModule() публичный Метод

public StaticContentModule ( string dir, IEnumerable cacheExtensions, System.TimeSpan expireTime ) : System
dir string
cacheExtensions IEnumerable
expireTime System.TimeSpan
Результат System
        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);
        }

Same methods

StaticContentModule::StaticContentModule ( ) : System
StaticContentModule::StaticContentModule ( string dir ) : System