Click or drag to resize

EcsBuilderUseMiddleware Method

Adds a middleware to the handler of the event with the specified name.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public IEcsBuilder UseMiddleware(
	string name,
	Func<EventDelegate, EventDelegate> middleware
)

Parameters

name
Type: SystemString
The name of the event.
middleware
Type: SystemFuncEventDelegate, EventDelegate
The middleware to add to the event.

Return Value

Type: IEcsBuilder
The builder.

Implements

IEcsBuilderUseMiddleware(String, FuncEventDelegate, EventDelegate)
See Also