FileSystemNotifier Class
Namespace: Rebex.IO.FileSystem.Notifications
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
Raises events for the FileSystemProvider operations.
Typical order of the related hook events that are associated with one file system operation:
- Preview event (e.g. CreatePreview). Pre-hook event.
- Surrogate event (e.g. CreateSurrogate). Pre-hook event.
- Completed event (e.g. CreateCompleted). Post-hook event.
When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of the FileSystemNotifier event.
Syntax
public sealed class FileSystemNotifier : IDisposable
Implements
Inherited Members
Remarks
Preview and Completed events are raised only for the top level ("root") operation. In this context top level ("root") operation means an operation initiated by the user of the file system. Only Surrogate events are raised for the file system internal/nested operations.
Properties
Name | Description |
---|---|
Provider | Gets the associated FileSystemProvider. |
Methods
Name | Description |
---|---|
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting resources. |
Events
Name | Description |
---|---|
CopyCompleted | Occurs after the FileSystemProvider copies instance of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
CopyPreview | Occurs before the FileSystemProvider copies instance of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
CopySurrogate | Occurs before the FileSystemProvider copies instance of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
CreateCompleted | Occurs after the FileSystemProvider persists new NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
CreatePreview | Occurs before the FileSystemProvider persists new NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
CreateSurrogate | Occurs before the FileSystemProvider persists new NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
DeleteCompleted | Occurs after the FileSystemProvider deletes instance of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
DeletePreview | Occurs before the FileSystemProvider deletes instance of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
DeleteSurrogate | Occurs before the FileSystemProvider deletes instance of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
ExistsNodeCompleted | Occurs after the FileSystemProvider checks the existence of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
ExistsNodePreview | Occurs before the FileSystemProvider checks the existence of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
ExistsNodeSurrogate | Occurs before the FileSystemProvider checks the existence of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetAttributesCompleted | Occurs after the FileSystemProvider returns NodeAttributes of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetAttributesPreview | Occurs before the FileSystemProvider returns NodeAttributes of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetAttributesSurrogate | Occurs before the FileSystemProvider returns NodeAttributes of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetChildrenCompleted | Occurs after the FileSystemProvider returns children of DirectoryNode. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetChildrenPreview | Occurs before the FileSystemProvider returns children of DirectoryNode. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetChildrenSurrogate | Occurs before the FileSystemProvider returns children of DirectoryNode. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetContentCompleted | Occurs before the FileSystemProvider returns NodeContent of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetContentPreview | Occurs before the FileSystemProvider returns NodeContent of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetContentSurrogate | Occurs before the FileSystemProvider returns NodeContent of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetLengthCompleted | Occurs after the FileSystemProvider returns length of the content of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetLengthPreview | Occurs before the FileSystemProvider returns length of the content of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetLengthSurrogate | Occurs before the FileSystemProvider returns length of the content of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetNodeCompleted | Occurs after the FileSystemProvider returns a resolved instance of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetNodePreview | Occurs before the FileSystemProvider returns a resolved instance of the class NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetNodesCompleted | Occurs after the FileSystemProvider returns a collection of the resolved instances of the NodeBase. |
GetNodesPreview | Occurs before the FileSystemProvider returns a collection of the resolved instances of the class NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetNodesSurrogate | Occurs before the FileSystemProvider returns a collection of the resolved instances of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetNodeSurrogate | Occurs before the FileSystemProvider returns a resolved instance of the class NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetTimeInfoCompleted | Occurs after the FileSystemProvider returns NodeTimeInfo of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetTimeInfoPreview | Occurs before the FileSystemProvider returns NodeTimeInfo of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
GetTimeInfoSurrogate | Occurs before the FileSystemProvider returns NodeTimeInfo of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
MoveCompleted | Occurs after the FileSystemProvider moves instance of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
MovePreview | Occurs before the FileSystemProvider moves instance of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
MoveSurrogate | Occurs before the FileSystemProvider moves instance of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
RenameCompleted | Occurs after the FileSystemProvider renames instance of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
RenamePreview | Occurs before the FileSystemProvider renames instance of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
RenameSurrogate | Occurs before the FileSystemProvider renames instance of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SaveContentCompleted | Occurs before the FileSystemProvider updates NodeContent of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. |
SaveContentPreview | Occurs before the FileSystemProvider updates NodeContent of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SaveContentSurrogate | Occurs before the FileSystemProvider updates NodeContent of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetAttributesCompleted | Occurs after the FileSystemProvider updates NodeAttributes of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetAttributesPreview | Occurs before the FileSystemProvider updates NodeAttributes of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetAttributesSurrogate | Occurs before the FileSystemProvider updates NodeAttributes of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetContentCompleted | Occurs before the FileSystemProvider updates NodeContent of the NodeBase.
This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetContentPreview | Occurs before the FileSystemProvider updates NodeContent of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetContentSurrogate | Occurs before the FileSystemProvider updates NodeContent of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. This event is raised only for NodeContent created using the CreateDelayedWriteContent(Stream) method. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetTimeInfoCompleted | Occurs after the FileSystemProvider updates NodeTimeInfo of the NodeBase. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetTimeInfoPreview | Occurs before the FileSystemProvider updates NodeTimeInfo of the NodeBase. If you cancel the operation using the CancelOperation() method, then OperationCanceledException will be thrown. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |
SetTimeInfoSurrogate | Occurs before the FileSystemProvider updates NodeTimeInfo of the NodeBase. You can register event handler, which overrides default implementation of the operation in the FileSystemProvider and provides own result for the operation. When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event. |