Table of Contents

Class EventScopeMiddleware

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

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

next EventDelegate

The next middleware handler.

Methods

Invoke(EventContext)

Invokes the middleware.

public object? Invoke(EventContext context)

Parameters

context EventContext

Returns

object