FactoryAsync<TConcrete, TInterface>
An abstract class in Alta.VContainerLayer.Runtime, the global namespace.
Async prefab factory with no parameters. Loads the prefab, instantiates it through the container and calls FactoryConstruct on its TConcrete component.
- Listed in Other Alta assemblies
- Inherits or implements
FactoryAsync,IFactoryAsync<TInterface>,IFactory,IDisposable
Constructors
| Member | What it is |
|---|---|
protected FactoryAsync() | Creates a FactoryAsync with default values. |
Methods
| Member | What it is |
|---|---|
async Task<TInterface> Create() | Loads the prefab, instantiates it with injection, calls FactoryConstruct on the component, tracks it for disposal and returns it. |