SampSharp
SampSharp
SampSharp.Entities
EventService Class
EventService Methods
EnableEvent Method
Invoke Method
UseMiddleware Method
EventService
UseMiddleware 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#
Copy
public
void
UseMiddleware
(
string
name
,
Func
<
EventDelegate
,
EventDelegate
>
middleware
)
Parameters
name
Type:
System
String
The name of the event.
middleware
Type:
System
Func
EventDelegate
,
EventDelegate
The middleware to add to the event.
Implements
IEventService
UseMiddleware(String, Func
EventDelegate, EventDelegate
)
See Also
Reference
EventService Class
SampSharp.Entities Namespace