Apachai.StaticContentModule.InitFileSystemWatcher C# (CSharp) Method

InitFileSystemWatcher() private method

private InitFileSystemWatcher ( string dir ) : void
dir string
return void
        void InitFileSystemWatcher(string dir)
        {
            fsw.NotifyFilter = NotifyFilters.LastWrite;
            fsw.IncludeSubdirectories = true;
            fsw.Changed += (obj, e) => etagCache[Path.Combine (dir, e.Name)] = GetEtagFromFile (e.FullPath);
            fsw.EnableRaisingEvents = true;
        }