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: AltaxoAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Task<T> GetFutureService<T>()
where T : class
Type Parameters
- T
- The service type to wait for.
Return Value
TaskTA 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