Share via


BuilderStage Enumeration

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

Enumeration to represent the object builder stages.

Namespace:  Microsoft.Practices.ObjectBuilder2
Assembly:  Microsoft.Practices.ObjectBuilder2 (in Microsoft.Practices.ObjectBuilder2.dll)

Syntax

'Declaration
Public Enumeration BuilderStage
public enum BuilderStage
public enum class BuilderStage
public enum BuilderStage

Members

Member name Description
PreCreation
Strategies in this stage run before creation. Typical work done in this stage might include strategies that use reflection to set policies into the context that other strategies would later use.
Creation
Strategies in this stage create objects. Typically you will only have a single policy-driven creation strategy in this stage.
Initialization
Strategies in this stage work on created objects. Typical work done in this stage might include setter injection and method calls.
PostInitialization
Strategies in this stage work on objects that are already initialized. Typical work done in this stage might include looking to see if the object implements some notification interface to discover when its initialization stage has been completed.

Remarks

The order of the values in the enumeration is the order in which the stages are run.

See Also

Microsoft.Practices.ObjectBuilder2 Namespace