Skip to main content

IFactoryAsyncPooled<TParam, TInterface>

An interface in Alta.VContainerLayer.Runtime, the global namespace.

Async pooled factory that passes one parameter to each spawned instance.

Methods​

MemberWhat it is
void Despawn(TInterface instance)Returns the instance to the pool.
Task<TInterface> Spawn(TParam param)Gets or makes an instance, passing it the parameter, and returns it when ready.