Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.WaitForService Class Referencesealed

Description

Initializer argument menu item that can be used to defer initialization of its client until a service that it requires becomes available.

Inheritance diagram for Sisus.Init.WaitForService:
Sisus.Init.IValueByTypeProviderAsync Sisus.Init.INullGuardByType

Public Member Functions

System.Threading.Tasks.Task< TValue > GetForAsync< TValue > (Component client)
 Defers execution of the calling method until the service of type TValue is available, and then returns it.
 
bool CanProvideValue< TService > ([AllowNull] Component client)
 
- Public Member Functions inherited from Sisus.Init.IValueByTypeProviderAsync
bool HasValueFor< TValue > (Component client)
 Gets a value indicating whether this value provider can provide a value of type TValue for the client at this time.
 
bool CanProvideValue< TValue > ([AllowNull] Component client)
 Gets a value indicating whether this value provider can potentially provide a value of the given type to the client at runtime.
 
- Public Member Functions inherited from Sisus.Init.INullGuardByType
NullGuardResult EvaluateNullGuard< TValue > ([AllowNull] Component client)
 Gets a value indicating whether null guard passes for this object or not, and if not, what was the cause of the failure.