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.3572.0 (4.8.3572.0)
Syntax
C#
public CachedService(
	bool isRequiredService,
	Action<T>? serviceAttached,
	Action<T>? serviceDetached
)

Parameters

isRequiredService  Boolean
If set to true, the service is treated as required, and an exception is 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