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

Inheritance: IDisposable
Afficher le fichier Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnFileChanged ( object sender, FileSystemEventArgs e ) : void
OnFileWatcherError ( ErrorEventArgs args ) : void

Private Methods

Méthode 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 méthode

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
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

OnFileChanged() protected méthode

protected OnFileChanged ( object sender, FileSystemEventArgs e ) : void
sender object
e System.IO.FileSystemEventArgs
Résultat void

OnFileWatcherError() protected méthode

protected OnFileWatcherError ( ErrorEventArgs args ) : void
args System.IO.ErrorEventArgs
Résultat void