Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Get() [1/2]

static object Sisus.Init.ServiceUtility.Get ( [DisallowNull] Type definingType)
static

Gets the shared service instance of the given definingType .

The returned object's class will match the provided definingType , derive from it or implement an interface of the type.

Parameters
definingTypeThe defining type of the service; the class or interface type that uniquely defines the service and can be used to retrieve an instance of it.

This must be an interface that the service implement, a base type that the service derives from, or the exact type of the service.

Returns
Exceptions
NullReferenceExceptionThrown if no globally accessbible service of type definingType is found.