CachedServiceT, U Constructor |
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public CachedService(
bool isRequiredService,
Action<T>? serviceAttached,
Action<T>? serviceDetached
)
Parameters
- isRequiredService Boolean
- If set to true, it is threated as a required service, and thus, an exception will be thrown if the service is not found.
- serviceAttached ActionT
- Action that will be executed if a new service instance is cached here.
- serviceDetached ActionT
- Action that is executed if an old service instance is released from this cache.
See Also