Class EventScopeMiddleware
Represents a middleware which adds a Dependency Injection scope to the EventContext of an event.
public class EventScopeMiddleware
- Inheritance
-
EventScopeMiddleware
- Inherited Members
Constructors
EventScopeMiddleware(EventDelegate)
Initializes a new instance of the EventScopeMiddleware class.
public EventScopeMiddleware(EventDelegate next)
Parameters
nextEventDelegateThe next middleware handler.
Methods
Invoke(EventContext)
Invokes the middleware.
public object? Invoke(EventContext context)
Parameters
contextEventContext