Factory
An abstract class in Alta.VContainerLayer.Runtime, the global namespace.
Base for the VContainer factories. Holds the injected container and a disposer, and disposes everything it created when it is disposed.
- Listed in Other Alta assemblies
- Inherits or implements
IFactory,IDisposable - Derived types
Factory<TInterface>,Factory<TParam, TInterface>,Factory<TParam1, TParam2, TInterface>,Factory<TParam1, TParam2, TParam3, TInterface>,FactoryAsync,FactoryAsyncPooled<TConcrete, TInterface>
Constructors
| Member | What it is |
|---|---|
protected Factory() | Creates a Factory with default values. |
Fields
| Member | What it is |
|---|---|
protected IObjectResolver container | The injected VContainer resolver, used to inject or instantiate what the factory creates. |
protected IDisposer disposer | Injected disposer that collects created instances to dispose with the factory. |