Skip to main content

Factory<TParam1, TParam2, TInterface>

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

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