IFactoryAsyncPooled<TParam, TInterface>
An interface in Alta.VContainerLayer.Runtime, the global namespace.
Async pooled factory that passes one parameter to each spawned instance.
- Listed in Other Alta assemblies
- Inherits or implements
IFactory,IDisposable - Derived types
FactoryAsyncPooled<TParam, TConcrete, TInterface>
Methods
| Member | What 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. |