EventConfiguration.md

January 20, 2026 · View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core

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
AsyncEventsGets or sets whether events should be fired asynchronously. Default is false for synchronous events.
DefaultGets the default event configuration.
EnableDirectoryEventsGets or sets whether to enable directory operation events.
EnableEventsGets or sets whether to enable all events. Default is true.
EnableFileEventsGets or sets whether to enable file operation events.
MaxEventHandlersGets 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.