Skip to main content

Factory<TInterface>

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

Synchronous factory with no parameters. Subclasses build the object in CreateInstance; Create then injects it and tracks it for disposal.

Constructors​

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

Methods​

MemberWhat it is
virtual TInterface Create()Calls CreateInstance, injects the result through the container, registers it for disposal and returns it.
protected abstract TInterface CreateInstance()Abstract. Builds the raw instance; implemented by each concrete factory.