Click or drag to resize

CurrentGetFutureServiceT Method

Returns a task that gets completed when the service is initialized. This method does not try to initialize the service -- if no other code forces the service to be initialized, the task will never complete.

Namespace: Altaxo
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static Task<T> GetFutureService<T>()
where T : class

Type Parameters

T
The service type to wait for.

Return Value

TaskT
A task that completes with the service instance once it becomes available.
Remarks
This method can be used to solve cyclic dependencies in service initialization.
See Also