Definition
Assembly: CloudNimble.SimpleMessageBus.Dispatch.FileSystem.dll Namespace: CloudNimble.SimpleMessageBus.Dispatch.Triggers Inheritance: System.AttributeSyntax
Summary
Attribute used to mark a job function that should be invoked based on file events.Remarks
The method parameter type can be one of the following:Constructors
.ctor
Constructs a new instance.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
path | string | The root path that this trigger is configured to watch for files on. |
filter | string | The optional file filter that will be used. |
changeTypes | System.IO.WatcherChangeTypes | The WatcherChangeTypes that will be used by the file watcher. The Default is Created. |
autoDelete | bool | True if processed files should be deleted automatically, false otherwise. The default is False. |
Properties
AutoDelete
Gets a value indicating whether files should be automatically deleted after they are successfully processed. When set to true, all files including any companion files starting with the target file name will be deleted when the file is successfully processed.Syntax
Property Value
Type:bool
ChangeTypes
Gets the WatcherChangeTypes that will be used by the file watcher.Syntax
Property Value
Type:System.IO.WatcherChangeTypes
Filter
Gets the optional file filter that will be used.Syntax
Property Value
Type:string
Path
Gets the root path that this trigger is configured to watch for files on.Syntax
Property Value
Type:string
RootPath
Gets the root path that this trigger is configured to watch for files on.Syntax
Property Value
Type:string