Click or drag to resize

MethodInvoker Delegate

Invoker for an instance method with dependency injection.

Namespace:  SampSharp.Entities.Utilities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public delegate Object MethodInvoker(
	Object target,
	Object[] args,
	IServiceProvider services,
	IEntityManager entityManager
)

Parameters

target
Type: SystemObject
The target instance to invoke the method on.
args
Type: SystemObject
The arguments of the method excluding the injected dependencies.
services
Type: SystemIServiceProvider
The service provider from which dependencies are loaded.
entityManager
Type: SampSharp.EntitiesIEntityManager
The entity manager from which components are loaded.

Return Value

Type: Object
The result of the method.
See Also