Click or drag to resize

EcsBuilderExtensionsEnableEventScope Method

Enabled a Dependency Injection scope for the event with the specified name.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public static IEcsBuilder EnableEventScope(
	this IEcsBuilder builder,
	string name
)

Parameters

builder
Type: SampSharp.EntitiesIEcsBuilder
The ECS builder in which to enable the scope.
name
Type: SystemString
The name of the event to add the scope to.

Return Value

Type: IEcsBuilder
A reference to this instance after the operation has completed.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEcsBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also