Jaa


BuilderAwareStrategy Class

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.

Implementation of IBuilderStrategy which will notify an object about the completion of a BuildUp(IReadWriteLocator, ILifetimeContainer, IPolicyList, IStrategyChain, Object, Object) operation, or start of a TearDown<TItem>(IReadWriteLocator, ILifetimeContainer, IPolicyList, IStrategyChain, TItem) operation.

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

Syntax

'Declaration
Public Class BuilderAwareStrategy _
    Inherits BuilderStrategy
public class BuilderAwareStrategy : BuilderStrategy
public ref class BuilderAwareStrategy : public BuilderStrategy
public class BuilderAwareStrategy extends BuilderStrategy

Remarks

This strategy checks the object that is passing through the builder chain to see if it implements IBuilderAware and if it does, it will call OnBuiltUp(Object) and OnTearingDown(). This strategy is meant to be used from the PostInitialization stage.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.ObjectBuilder2.BuilderStrategy
    Microsoft.Practices.ObjectBuilder2.BuilderAwareStrategy

See Also

BuilderAwareStrategy Members

Microsoft.Practices.ObjectBuilder2 Namespace