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

◆ ServiceChangedHandler< TService >()

delegate void Sisus.Init.ServiceChangedHandler< TService > ( Clients clients,
[AllowNull] TService oldInstance,
[AllowNull] TService newInstance )

Represents a method that will handle the event of the globally shared instance of service of type TService having been replaced by another instance.

Template Parameters
TServiceThe defining type of the service class, which is the type specified in its ServiceAttribute, or - if no other type has been explicitly specified - the exact type of the service class.
Parameters
oldInstanceThe old service instance, or null if there was no instance of the service before.
newInstanceThe new service instance, or null if the service was set to be null.