From 4df5c19b940d1cdbe48c881a8d3e5f1fc22b9867 Mon Sep 17 00:00:00 2001 From: Rik Svendsen Rose Date: Wed, 9 Dec 2020 15:20:30 +0100 Subject: [PATCH] Cleanup #563 --- .../Scope/ExtensionContainerScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Castle.Windsor.Extensions.DependencyInjection/Scope/ExtensionContainerScope.cs b/src/Castle.Windsor.Extensions.DependencyInjection/Scope/ExtensionContainerScope.cs index c165b515f6..61268f02a4 100644 --- a/src/Castle.Windsor.Extensions.DependencyInjection/Scope/ExtensionContainerScope.cs +++ b/src/Castle.Windsor.Extensions.DependencyInjection/Scope/ExtensionContainerScope.cs @@ -25,7 +25,7 @@ internal class ExtensionContainerScope : ILifetimeScope, IDisposable { internal static ExtensionContainerScope CurrentOrThrow { - get => current.Value ?? throw new InvalidOperationException("No scope available"); + get => current.Value ?? throw new InvalidOperationException("No scope available"); set => current.Value = value; } public static string TransientMarker = "Transient";