gov.va.medora.mdws.MySession.watchSitesFile C# (CSharp) Method

watchSitesFile() public method

public watchSitesFile ( string path ) : void
path string
return void
        void watchSitesFile(string path)
        {
            FileSystemWatcher watcher = new FileSystemWatcher(path);
            watcher.Filter = (_mdwsConfig.FacadeConfiguration.SitesFileName);
            watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.CreationTime
                | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.Size;
            watcher.EnableRaisingEvents = true;
            watcher.Changed += new FileSystemEventHandler(watcher_Changed);
            watcher.Deleted += new FileSystemEventHandler(watcher_Changed);
            watcher.Created += new FileSystemEventHandler(watcher_Changed);
        }