Skip to main content

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.

Constructors​

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

Methods​

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