Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IValueProviderAsync< TValue > Interface Template Reference

Description

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

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

Template Parameters
TValueType of the provided value.
See also
IValueProvider<TValue>, IValueByTypeProvider, IValueByTypeProviderAsync
Inheritance diagram for Sisus.Init.IValueProviderAsync< TValue >:
Sisus.Init.IValueProviderAsync

Public Member Functions

new System.Threading.Tasks.Task< TValue > GetForAsync ([AllowNull] Component client)
 Gets the value of type TValue for the client .
 
bool HasValueFor (Component client)
 Gets a value indicating whether this value provider can provide a value of type TValue for the client at this time.
 
async System.Threading.Tasks.Task< object > IValueProviderAsync. GetForAsync ([AllowNull] Component client)
 Gets the value of type TValue for the client .