Skip to main content

Factory<TParam1, TParam2, TParam3, TInterface>

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

Synchronous factory taking three parameters. 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(TParam1 param1, TParam2 param2, TParam3 param3)Calls CreateInstance with the three parameters, injects the result, registers it for disposal and returns it.
protected abstract TInterface CreateInstance(TParam1 param1, TParam2 param2, TParam3 param3)Abstract. Builds the raw instance from the three parameters.