Skip to content
Permalink
Browse files

Reverted #701 for v4.5.2 as this is a patch release. #701 will be app…

…lied to v4.6.
  • Loading branch information...
dotnetjunkie committed May 6, 2019
1 parent 1b012f4 commit d944ab2da1eae6ecf85a2b8509360a8090914632
Showing with 0 additions and 5 deletions.
  1. +0 −2 src/SimpleInjector.Tests.Unit/DecoratorTests.cs
  2. +0 −3 src/SimpleInjector/Scope.cs
@@ -2537,9 +2537,7 @@ public void ScopedDecoratoreeFactory_SuppliedWithContainerlessScope_ThrowsDescri
var proxy = (ScopedPluginProxy)container.GetInstance<IPlugin>();
Func<Scope, IPlugin> factory = proxy.Factory;

#pragma warning disable CS0618 // Type or member is obsolete
var containerlessScope = new Scope();
#pragma warning restore CS0618 // Type or member is obsolete

// Act
Action action = () => factory(containerlessScope);
@@ -49,9 +49,6 @@ public class Scope : ApiObject, IDisposable
private int recursionDuringDisposalCounter;

/// <summary>Initializes a new instance of the <see cref="Scope"/> class.</summary>
[Obsolete("Use the overloaded Scope(Container) constructor instead. " +
"Will be treated as an error from version 5.0. Will be removed in version 6.0.",
error: false)]
public Scope()
{
}

0 comments on commit d944ab2

Please sign in to comment.
You can’t perform that action at this time.