FactoryAsync<TParam, TConcrete, TInterface>
An abstract class in Alta.VContainerLayer.Runtime, the global namespace.
Async prefab factory taking one parameter, passed to the component's FactoryConstruct.
- Listed in Other Alta assemblies
- Inherits or implements
FactoryAsync,IFactoryAsync<TParam, 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(TParam param) | Loads and instantiates the prefab with injection, calls FactoryConstruct(param) on the component, tracks it for disposal and returns it. |