AsyncLazy<T> - класс

Объект, поддерживающий асинхронную ленивую инициализацию значения типа T в виде задачи Task<T>. Пример: T value = await someLazy;

Definition

Пространство имён: Tessa.Platform
Сборка: Tessa (в Tessa.dll) Версия: 4.0.7
C#
public class AsyncLazy<T> : Lazy<Task<T>>
Inheritance
Object    Lazy<Task<T>>    AsyncLazy<T>

Параметры типа

T
Тип значения, который инициализируется асинхронно.

Конструкторы

AsyncLazy<T>(Func<T>)Инициализирует новый экземпляр класса AsyncLazy<T>
AsyncLazy<T>(Func<Task<T>>)Инициализирует новый экземпляр класса AsyncLazy<T>

Свойства

IsValueCreatedGets a value that indicates whether a value has been created for this Lazy<T> instance.
(Унаследован от Lazy<Task<T>>)
ValueGets the lazily initialized value of the current Lazy<T> instance.
(Унаследован от Lazy<Task<T>>)

Методы

EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetAwaiter 
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ToStringCreates and returns a string representation of the Value property for this instance.
(Унаследован от Lazy<Task<T>>)

Методы расширения

Get
(Определяется ComHelper)
Invoke
(Определяется ComHelper)
Set
(Определяется ComHelper)

См. также