Represents a middleware configuration option. Defines which events a middleware should handle and the handler function.
The type of the MediatorContext.
The type of the event names.
The event name or wildcard (*) to match
The middleware handler function
Represents a middleware configuration option. Defines which events a middleware should handle and the handler function.