Click or drag to resize

FileSystemWatcherQueued Class

IT Hit User File System
FileSystemWatcherQueued implements event handing of FileSystemWatcher by producer-consumer design to avoid issue with internalBufferSize To further improve performance and reduce the chance of getting the InternalBufferOverflowException: - Run your application in the release mode without debugger attached. - Reduce the size of the path being monitored.
Inheritance Hierarchy
SystemObject
  ITHit.FileSystemFileSystemWatcherQueued

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.1.26727.0-Beta2
Syntax
public class FileSystemWatcherQueued : IDisposable

The FileSystemWatcherQueued type exposes the following members.

Constructors
  NameDescription
Public methodFileSystemWatcherQueued
Initializes a new instance of FileWatchWrapper and runs monitoring infrastucture.
Top
Properties
  NameDescription
Public propertyEnableRaisingEvents
Gets or sets a value indicating whether the component is enabled.
Public propertyIncludeSubdirectories
Gets or sets a value indicating whether subdirectories within the specified path should be monitored.
Public propertyNotifyFilter
Gets or sets the type of changes to watch for.
Public propertyPath
Gets or sets the path of the directory to watch.
Top
Methods
  NameDescription
Public methodDispose
Stops handling task and releases all resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFileWatcherEventHandler
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventChanged
Occurs when a file or directory in the specified System.IO.FileSystemWatcher.Path is created.
Public eventCreated
Occurs when a file or directory in the specified System.IO.FileSystemWatcher.Path is changed.
Public eventDeleted
Occurs when a file or directory in the specified System.IO.FileSystemWatcher.Path is deleted.
Public eventError
Occurs when the instance of System.IO.FileSystemWatcher is unable to continue monitoring changes
Public eventRenamed
Occurs when a file or directory in the specified System.IO.FileSystemWatcher.Path is renamed.
Top
See Also