This generator launch an event when a directory or file in a directory change. This generator use the FileWatcherEvent class.
See Service Configuration for detailled information to configure your service. You must declare this generator with the <generator> section inside the <generators> section. It will looks like :
<generator name="MyGeneratorName" type="LeCouteauSuisse.Components.FileWatcherGenerator,
LeCouteauSuisseComponents, Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
This component have some parameters inside the section <settings>. Each parameter is written with a <setting> section.
Key name | Mandatory | Default value | Description |
path | Yes | | The directory to monitor, in standard or Universal Naming Convention (UNC) notation. |
fileFilter | No | *.* | The type of files to watch. For example, "*.txt" watches for changes to all text files. |
notifyFilter | No | LastWrite,FileName,DirectoryName | Sets the type of changes to watch for. Use values from the NotifyFilters enumeration of the Framework. |
eventFilter | No | All | Changes that might occur to a file or directory. Use values from the WatcherChangeTypes enumeration of the Framework. |
includeSubdirectories | No | false | Sets a value (true or false) indicating whether subdirectories within the specified path should be monitored. |
internalBufferSize | No | 8192 | Sets the size of the internal buffer. |