Skip to main content

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.

Constructors​

MemberWhat it is
protected FactoryAsync()Creates a FactoryAsync with default values.

Methods​

MemberWhat 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.