Click or drag to resize

CachedServiceT, U Constructor

Initializes a new instance of the CachedServiceT, U struct.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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