C# Класс Aqueduct.Common.FileWatcher

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ConfigureWatcher ( ) : void
GetAllFilters ( ) : NotifyFilters
LastEventNotTriggeredWithinInterval ( System.DateTime now, System.DateTime lastTriggeredOn ) : bool

Описание методов

FileWatcher() публичный Метод

Initializes a new instance of the FileWatcher class.
public FileWatcher ( string watchedFolder ) : System
watchedFolder string
Результат System

FileWatcher() публичный Метод

Initializes a new instance of the FileWatcher class.
public FileWatcher ( string watchedFolder, string filter ) : System
watchedFolder string
filter string
Результат System

FileWatcher() публичный Метод

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
Результат System

OnChanged() публичный Метод

Triggers the Changed event.
public OnChanged ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
Результат void

OnCreated() публичный Метод

Triggers the Created event.
public OnCreated ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
Результат void

OnDeleted() публичный Метод

Triggers the Deleted event.
public OnDeleted ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
Результат void

OnRenamed() публичный Метод

Triggers the Renamed event.
public OnRenamed ( FileSystemEventArgs ea ) : void
ea System.IO.FileSystemEventArgs
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void