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

◆ SetInstanceSilently()

static void Sisus.Init.ServiceUtility.SetInstanceSilently ( [DisallowNull] Type definingType,
[AllowNull] object instance )
static

Sets the service instance of the provided definingType type that is shared across clients to the given value.

If the provided instance is not equal to the old Service<>.Instance then the Service<>.InstanceChanged event will be raised.

Parameters
instanceThe new instance of the service.