C# Class Aqueduct.Common.FileWatcher

显示文件 Open project: aqueduct/Aqueduct.SitecoreLib

Public Methods

Method Description
FileWatcher ( string watchedFolder ) : System

Initializes a new instance of the FileWatcher class.

FileWatcher ( string watchedFolder, string filter ) : System

Initializes a new instance of the FileWatcher class.

FileWatcher ( string watchedFolder, string filter, NotifyFilters notifyFilter, System.TimeSpan eventTriggerInterval, System.TimeSpan delayNotificationBy ) : System

Initializes a new instance of the FileWatcher class.

OnChanged ( FileSystemEventArgs ea ) : void

Triggers the Changed event.

OnCreated ( FileSystemEventArgs ea ) : void

Triggers the Created event.

OnDeleted ( FileSystemEventArgs ea ) : void

Triggers the Deleted event.

OnRenamed ( FileSystemEventArgs ea ) : void

Triggers the Renamed event.

Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
ConfigureWatcher ( ) : void
GetAllFilters ( ) : NotifyFilters
LastEventNotTriggeredWithinInterval ( System.DateTime now, System.DateTime lastTriggeredOn ) : bool

Method Details

FileWatcher() public method

Initializes a new instance of the FileWatcher class.
public FileWatcher ( string watchedFolder ) : System
watchedFolder string
return System

FileWatcher() public method

Initializes a new instance of the FileWatcher class.
public FileWatcher ( string watchedFolder, string filter ) : System
watchedFolder string
filter string
return System

FileWatcher() public method

Initializes a new instance of the FileWatcher class.
public FileWatcher ( string watchedFolder, string filter, NotifyFilters notifyFilter, System.TimeSpan eventTriggerInterval, System.TimeSpan delayNotificationBy ) : System
watchedFolder string
filter string
notifyFilter NotifyFilters
eventTriggerInterval System.TimeSpan
delayNotificationBy System.TimeSpan
return System

OnChanged() public method

Triggers the Changed event.
public OnChanged ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
return void

OnCreated() public method

Triggers the Created event.
public OnCreated ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
return void

OnDeleted() public method

Triggers the Deleted event.
public OnDeleted ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
return void

OnRenamed() public method

Triggers the Renamed event.
public OnRenamed ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void