Click or drag to resize

AsyncInitializerTFrom, TTo Class

Asynchronous initializer.
Inheritance Hierarchy
SystemObject
  Ditto.AsyncInit.ServicesAsyncInitializerTFrom, TTo
    Ditto.AsyncInit.ServicesContainerAsyncInitializerBaseTFrom, TTo, TContainer

Namespace:  Ditto.AsyncInit.Services
Assembly:  Ditto.AsyncInit.Services (in Ditto.AsyncInit.Services.dll) Version: 1.5.0.2468
Syntax
public class AsyncInitializer<TFrom, TTo> : IAsyncInitializer<TFrom>
where TTo : TFrom

Type Parameters

TFrom
The requested type.
TTo
The actual type.

The AsyncInitializerTFrom, TTo type exposes the following members.

Constructors
  NameDescription
Public methodAsyncInitializerTFrom, TTo
Initializes a new instance of the AsyncInitializerTFrom, TTo class with typed initialization arguments.
Top
Methods
  NameDescription
Public methodAsTask
Gets a task capturing the initialization.
Public methodAsTask(CancellationToken)
Gets a cancelable task capturing the initialization.
Protected methodCreateAsync(IEnumerableType, CancellationToken)
Asynchronously creates and initializes an instance of TTo using the first specified initialization interface type.
Protected methodCreateAsync(Type, CancellationToken)
Asynchronously creates and initializes an instance of TTo using the specified initialization interface type.
Protected methodCreateInstance
Creates an instance of TTo.
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.)
Protected methodGetContainerStrategy
Gets the container strategy.
Public methodGetHashCode
Serves as the default hash function.
(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
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
An initializer with no initialization arguments.
Top
See Also