Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IValueByTypeProviderAsync Interface Reference

Description

Represents an object that can asynchronously retrieve a value of a given type for a client Component.

If a class derives from Object and implements IValueByTypeProviderAsync then Any<T> can wrap an instance of this class and return its value when Any<T>.GetValueAsync<TClient> is called.

See also
IValueProvider<TValue>, IValueProviderAsync<TValue>, IValueByTypeProvider
Inheritance diagram for Sisus.Init.IValueByTypeProviderAsync:
Sisus.Init.WaitForService

Public Member Functions

System.Threading.Tasks.Task< TValue > GetForAsync< TValue > ([AllowNull] Component client)
 Asynchronously retrieves a value of type TValue for the client .
 
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.