Click or drag to resize

EventServiceUseMiddleware 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 void 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.

Implements

IEventServiceUseMiddleware(String, FuncEventDelegate, EventDelegate)
See Also