Click or drag to resize
AsyncLazyT Class
Provides support for asynchronous lazy initialization.
Inheritance Hierarchy
SystemObject
  SystemLazyTaskT
    CodeTigerAsyncLazyT

Namespace: CodeTiger
Assembly: CodeTiger.Core (in CodeTiger.Core.dll) Version: 1.0.0.0
Syntax
public class AsyncLazy<T> : Lazy<Task<T>>

Type Parameters

T
The type of object to be lazily initialized.

The AsyncLazyT type exposes the following members.

Constructors
  NameDescription
Public methodAsyncLazyT
Initializes a new instance of the AsyncLazyT class that uses the default constructor of T and a thread-safety mode of ExecutionAndPublication.
Public methodAsyncLazyT(Boolean)
Initializes a new instance of the AsyncLazyT class that uses the default constructor of T and a thread-safety mode determined by isThreadSafe ( ExecutionAndPublication if true or None if false).
Public methodAsyncLazyT(FuncTaskT)
Initializes a new instance of the AsyncLazyT class that uses a provided initialization function and a thread-safety mode of ExecutionAndPublication. T and a thread-safety mode of ExecutionAndPublication.
Public methodAsyncLazyT(LazyThreadSafetyMode)
Initializes a new instance of the AsyncLazyT class that uses the default constructor of T and a specified thread-safety mode.
Public methodAsyncLazyT(FuncTaskT, Boolean)
Initializes a new instance of the AsyncLazyT class that uses a provided initialization function and a thread-safety mode determined by isThreadSafe ( ExecutionAndPublication if true or None if false).
Public methodAsyncLazyT(FuncTaskT, LazyThreadSafetyMode)
Initializes a new instance of the AsyncLazyT class that uses a provided initialization function and specified thread-safety mode.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Creates and returns a string representation of the Value property for this instance.
(Inherited from LazyTaskT.)
Top
Properties
  NameDescription
Public propertyIsValueCreated (Inherited from LazyTaskT.)
Public propertyValue (Inherited from LazyTaskT.)
Top
See Also