Skip to main content

FactoryAsync<TParam1, TParam2, TConcrete, TInterface>

An abstract class in Alta.VContainerLayer.Runtime, the global namespace.

Async prefab factory taking two parameters, 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(TParam1 param1, TParam2 param2)Loads and instantiates the prefab with injection, calls FactoryConstruct with both parameters, tracks it for disposal and returns it.