SampSharp
SampSharp
SampSharp.Entities
IEcsBuilder Interface
IEcsBuilder Methods
EnableEvent Method
UseMiddleware Method
IEcsBuilder
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
IEcsBuilder
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.
Return Value
Type:
IEcsBuilder
The builder.
See Also
Reference
IEcsBuilder Interface
SampSharp.Entities Namespace