C# Class BlueCollar.FileSystemWatcher

Inheritance: IDisposable
Mostra file Open project: ChadBurggraf/blue-collar

Public Methods

Method Description
Dispose ( ) : void

Releases all resources used by this instance.

FileSystemWatcher ( ) : System

Initializes a new instance of the FileSystemWatcher class.

FileSystemWatcher ( string path ) : System

Initializes a new instance of the FileSystemWatcher class.

FileSystemWatcher ( string path, string filter ) : System

Initializes a new instance of the FileSystemWatcher class.

Private Methods

Method Description
DequeueEvents ( ) : void

Dequeues all of the events that have elapsed the current Threshold.

Dispose ( bool disposing ) : void

Releases all resources used by this instance.

EnqueueEvent ( string path, FileSystemEventType eventType, FileSystemEventArgs e ) : void

Enqueues and possibly throttles an event for raising.

Initialize ( ) : void

Performs initialization.

InnerWatcherChanged ( object sender, FileSystemEventArgs e ) : void

Raises the innerWatcher's Changed event.

InnerWatcherCreated ( object sender, FileSystemEventArgs e ) : void

Raises the innerWatcher's Created event.

InnerWatcherDeleted ( object sender, FileSystemEventArgs e ) : void

Raises the innerWatcher's Deleted event.

InnerWatcherDisposed ( object sender, EventArgs e ) : void

Raises the innerWatcher's Disposed event.

InnerWatcherError ( object sender, ErrorEventArgs e ) : void

Raises the innerWatcher's Error event.

InnerWatcherRenamed ( object sender, RenamedEventArgs e ) : void

Raises the innerWatcher's Renamed event.

RaiseEvent ( PathEventItem item ) : void

Raises a throttled event to any listeners of this instance.

Method Details

Dispose() public method

Releases all resources used by this instance.
public Dispose ( ) : void
return void

FileSystemWatcher() public method

Initializes a new instance of the FileSystemWatcher class.
public FileSystemWatcher ( ) : System
return System

FileSystemWatcher() public method

Initializes a new instance of the FileSystemWatcher class.
public FileSystemWatcher ( string path ) : System
path string The directory to monitor, in standard or Universal Naming Convention (UNC) notation.
return System

FileSystemWatcher() public method

Initializes a new instance of the FileSystemWatcher class.
public FileSystemWatcher ( string path, string filter ) : System
path string The directory to monitor, in standard or Universal Naming Convention (UNC) notation.
filter string The type of files to watch. For example, "*.txt" watches for changes to all text files.
return System