diff --git a/src/Builder/IBuilderContext.cs b/src/Builder/IBuilderContext.cs index 203fbed2..df35c502 100644 --- a/src/Builder/IBuilderContext.cs +++ b/src/Builder/IBuilderContext.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; -using Unity.Builder.Strategy; using Unity.Exceptions; using Unity.Lifetime; using Unity.Policy; @@ -33,11 +32,6 @@ public interface IBuilderContext /// IStrategyChain Strategies { get; } - /// - /// Set of strategies used for building of this context - /// - BuilderStrategy[] BuildChain { get; } - /// /// Gets the associated with the build. /// @@ -143,50 +137,6 @@ public interface IBuilderContext /// public static class BuilderContextExtensions { - - /// - /// A convenience method to do a new buildup operation on an existing context. This - /// overload allows you to specify extra policies which will be in effect for the duration - /// of the build. - /// - /// Key defining what to build up. - /// A delegate that takes a . This - /// is invoked with the new child context before the build up process starts. This gives callers - /// the opportunity to customize the context for the build process. - /// Created object. - public static object NewBuildUp(this IBuilderContext context, INamedType newBuildKey, Action childCustomizationBlock = null) - { - return (context ?? throw new ArgumentNullException(nameof(context))) - .NewBuildUp(newBuildKey?.Type, newBuildKey?.Name, childCustomizationBlock); - } - - /// - /// Start a recursive build up operation to retrieve the default - /// value for the given type. - /// - /// Type of object to build. - /// Parent context. - /// Resulting object. - public static TResult NewBuildUp(this IBuilderContext context) - { - return (TResult)(context ?? throw new ArgumentNullException(nameof(context))) - .NewBuildUp(typeof(TResult), null, null); - } - - /// - /// Start a recursive build up operation to retrieve the named - /// implementation for the given type. - /// - /// Type to resolve. - /// Parent context. - /// Name to resolve with. - /// The resulting object. - public static TResult NewBuildUp(this IBuilderContext context, string name) - { - return (TResult)(context ?? throw new ArgumentNullException(nameof(context))) - .NewBuildUp(typeof(TResult), name, null); - } - /// /// Add a set of s to the context, specified as a /// variable argument list.