diff --git a/package.props b/package.props index db1dd671..455cab6f 100644 --- a/package.props +++ b/package.props @@ -1,7 +1,7 @@ - 3.2.0 + 3.3.0 This package is distributed as .NET Standard 1.0, 2.0, .Net Core 1.0 and .NET 4.0, 4.5, 4.7 diff --git a/src/Builder/IBuilderContext.cs b/src/Builder/IBuilderContext.cs index df35c502..c866c0f6 100644 --- a/src/Builder/IBuilderContext.cs +++ b/src/Builder/IBuilderContext.cs @@ -58,6 +58,18 @@ public interface IBuilderContext /// IPolicySet Registration { get; } + /// + /// Reference to Lifetime manager which requires recovery + /// + IRequiresRecovery RequiresRecovery { get; set; } + + /// + /// The set of policies that were passed into this context. + /// + /// This returns the policies passed into the context. + /// Policies added here will remain after buildup completes. + /// The persistent policies for the current context. + IPolicyList PersistentPolicies { get; } /// /// Gets the policies for the current context. @@ -69,11 +81,6 @@ public interface IBuilderContext /// IPolicyList Policies { get; } - /// - /// Reference to Lifetime manager which requires recovery - /// - IRequiresRecovery RequiresRecovery { get; set; } - /// /// The current object being built up or torn down. /// diff --git a/src/IContainerContext.cs b/src/IContainerContext.cs deleted file mode 100644 index bbd28b53..00000000 --- a/src/IContainerContext.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Unity.Lifetime; -using Unity.Policy; - -namespace Unity -{ - /// - /// Container interface exposing engine to internal container parts - /// - public interface IContainerContext - { - /// - /// The container that this context is associated with. - /// - /// The object. - IUnityContainer Container { get; } - - /// - /// The that this container uses. - /// - /// The is used to manage objects that the container is managing. - ILifetimeContainer Lifetime { get; } - - /// - /// The policies this container uses. - /// - /// The the that container uses to build objects. - IPolicyList Policies { get; } - - } -}