Decorates and routes build requests, to the underlying type-based rules.

This inversion of control method is responsible of the delegation of the concrete build handling, to the method OnBuild(Type,string,BuildArgument[]) implemented by the subclasses of this InjectionStrategy.

Namespace: Keystone.Mystere
Assembly: Keystone.Mystere (in Keystone.Mystere.dll)

public object Build( 
Type typeToBuild
string objectToBuildId
BuildArgumentCollection arguments 
)
This language is not supported or no code example is available.

Parameters

typeToBuild

Type: Type

The type of the object to be built.

objectToBuildId

Type: string

The identifier of the object to be built in the context of this process. This abstract concept can model any data useful to run concrete rules that build an object with the specified identity.

arguments

Type: BuildArgumentCollection

The arguments to pass to the injection strategy build request.

Return Value

The built object.
Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) value is given for the typeToBuild argument. or If a null reference (Nothing in Visual Basic) or empty value is given for the objectToBuildId argument.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono