SampSharp
SampSharp
SampSharp.Entities
IEventService Interface
IEventService Methods
EnableEvent Method
Invoke Method
UseMiddleware Method
IEventService
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
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.
See Also
Reference
IEventService Interface
SampSharp.Entities Namespace