C# Class Microsoft.Azure.WebJobs.Script.IO.AutoRecoveringFileSystemWatcher

Inheritance: IDisposable
Exibir arquivo Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Public Methods

Method Description
AutoRecoveringFileSystemWatcher ( string path, string filter = "*.*", bool includeSubdirectories = true, WatcherChangeTypes changeTypes = WatcherChangeTypes.All, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter = null ) : System
Dispose ( ) : void

Protected Methods

Method Description
OnFileChanged ( object sender, FileSystemEventArgs e ) : void
OnFileWatcherError ( ErrorEventArgs args ) : void

Private Methods

Method Description
AddEventSubscriptions ( FileSystemWatcher fileWatcher, WatcherChangeTypes changeTypes ) : void
Dispose ( bool disposing ) : void
InitializeWatcher ( ) : void
Recover ( int attempt = 1 ) : Task
ReleaseCurrentFileWatcher ( ) : void
Trace ( string message, TraceLevel level ) : void

Method Details

AutoRecoveringFileSystemWatcher() public method

public AutoRecoveringFileSystemWatcher ( string path, string filter = "*.*", bool includeSubdirectories = true, WatcherChangeTypes changeTypes = WatcherChangeTypes.All, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter = null ) : System
path string
filter string
includeSubdirectories bool
changeTypes WatcherChangeTypes
traceWriter Microsoft.Azure.WebJobs.Host.TraceWriter
return System

Dispose() public method

public Dispose ( ) : void
return void

OnFileChanged() protected method

protected OnFileChanged ( object sender, FileSystemEventArgs e ) : void
sender object
e System.IO.FileSystemEventArgs
return void

OnFileWatcherError() protected method

protected OnFileWatcherError ( ErrorEventArgs args ) : void
args System.IO.ErrorEventArgs
return void