Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2.87 KB

File metadata and controls

30 lines (23 loc) · 2.87 KB

EventConfiguration Class

Configuration for event handling.

public sealed record EventConfiguration : System.IEquatable<Atypical.VirtualFileSystem.Core.EventConfiguration>

Inheritance System.Object 🡒 EventConfiguration

Implements System.IEquatable<EventConfiguration>

Properties
AsyncEvents Gets or sets whether events should be fired asynchronously. Default is false for synchronous events.
Default Gets the default event configuration.
EnableDirectoryEvents Gets or sets whether to enable directory operation events.
EnableEvents Gets or sets whether to enable all events. Default is true.
EnableFileEvents Gets or sets whether to enable file operation events.
MaxEventHandlers Gets or sets the maximum number of event handlers per event type. Default is 100. Set to 0 for unlimited.
Methods
DirectoryEventsOnly() Creates a configuration with only directory events enabled.
Disabled() Creates a configuration with all events disabled.
FileEventsOnly() Creates a configuration with only file events enabled.
WithAsyncEvents() Creates a configuration with asynchronous events.