Webmasters, gagnez de l'argent en affichant des bannières contextuelles Oxado
SourceForge.net Logo
Support This Project
   LeCouteauSuisse Project
Welcome ! [ Home ]  ·  [ Downloads ]  ·  [ Forums ]  ·  [ News ]  ·  [ Documentations ]  
[ Home ]

[ Documentations ]

FileWatcherGenerator


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 nameMandatoryDefault valueDescription
pathYes The directory to monitor, in standard or Universal Naming Convention (UNC) notation.
fileFilterNo*.*The type of files to watch. For example, "*.txt" watches for changes to all text files.
notifyFilterNoLastWrite,FileName,DirectoryNameSets the type of changes to watch for. Use values from the NotifyFilters enumeration of the Framework.
eventFilterNoAllChanges that might occur to a file or directory. Use values from the WatcherChangeTypes enumeration of the Framework.
includeSubdirectoriesNofalseSets a value (true or false) indicating whether subdirectories within the specified path should be monitored.
internalBufferSizeNo8192Sets the size of the internal buffer.


LeCouteauSuisse