@microsoft/fast-element/di.js > Factory > constructAsync
Factory.constructAsync() method
Constructs an instance of the factory's object, allowing for async resolution of dependencies.
Signature:
constructAsync(container: Container, dynamicDependencies?: Key[]): Promise<Resolved<T>>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
container |
The container the object is being constructor for. | |
|
dynamicDependencies |
Key[] |
(Optional) Dynamic dependencies supplied to the constructor. |
Returns:
Promise<Resolved<T>>