From 2fd1ae089ab441676d81a8fda735b35dad661340 Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Thu, 16 Aug 2018 09:17:58 -0700 Subject: [PATCH] Resolved #927: Clarified duplicate lifetime scope exception message with respect to Owned. --- src/Autofac/Core/Lifetime/LifetimeScopeResources.Designer.cs | 2 +- src/Autofac/Core/Lifetime/LifetimeScopeResources.resx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Autofac/Core/Lifetime/LifetimeScopeResources.Designer.cs b/src/Autofac/Core/Lifetime/LifetimeScopeResources.Designer.cs index aec6684eb..8ea8bbe77 100644 --- a/src/Autofac/Core/Lifetime/LifetimeScopeResources.Designer.cs +++ b/src/Autofac/Core/Lifetime/LifetimeScopeResources.Designer.cs @@ -62,7 +62,7 @@ internal class LifetimeScopeResources { } /// - /// Looks up a localized string similar to The tag '{0}' has already been assigned to a parent lifetime scope.. + /// Looks up a localized string similar to The tag '{0}' has already been assigned to a parent lifetime scope. If you are using Owned<T> this indicates you may have a circular dependency chain.. /// internal static string DuplicateTagDetected { get { diff --git a/src/Autofac/Core/Lifetime/LifetimeScopeResources.resx b/src/Autofac/Core/Lifetime/LifetimeScopeResources.resx index 100efcee7..6148e6bf5 100644 --- a/src/Autofac/Core/Lifetime/LifetimeScopeResources.resx +++ b/src/Autofac/Core/Lifetime/LifetimeScopeResources.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The tag '{0}' has already been assigned to a parent lifetime scope. + The tag '{0}' has already been assigned to a parent lifetime scope. If you are using Owned<T> this indicates you may have a circular dependency chain. Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.