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

◆ AddInstanceChangedListener< TService >()

static void Sisus.Init.Service.AddInstanceChangedListener< TService > ( ServiceChangedHandler< TService > method)
static

Subscribes the provided method to listen for changes made to the shared instance of service of type TService .

The method will only be called when in reaction to services that are accesible by all Clients changing.

Template Parameters
TServiceThe defining type of the service.
Parameters
methodMethod to call when the shared instance of service of type TService has changed to a different one.