![]() |
Init(args)
Scripting Reference
|
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.
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. | |