|
|
◆ 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
-
| TService | The 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
-
| oldInstance | The old service instance, or null if there was no instance of the service before. |
| newInstance | The new service instance, or null if the service was set to be null. |
|