Skip to main content

Factory<TParam, TInterface>

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

Synchronous factory taking one parameter. Subclasses build the object in CreateInstance; Create 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(TParam param)Calls CreateInstance with the parameter, injects the result, registers it for disposal and returns it.
protected abstract TInterface CreateInstance(TParam param)Abstract. Builds the raw instance from the parameter.