From 19fe05d9d13e792a505388008ece3a3959134d34 Mon Sep 17 00:00:00 2001 From: jeremydmiller Date: Fri, 1 Feb 2019 08:11:04 +0000 Subject: [PATCH] Fix for the decorator in another assembly issue. Closes GH-124 --- src/Lamar/IoC/Instances/ConstructorInstance.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Lamar/IoC/Instances/ConstructorInstance.cs b/src/Lamar/IoC/Instances/ConstructorInstance.cs index e2464338..2542dfb8 100644 --- a/src/Lamar/IoC/Instances/ConstructorInstance.cs +++ b/src/Lamar/IoC/Instances/ConstructorInstance.cs @@ -453,7 +453,7 @@ private static string explainWhyConstructorCannotBeUsed(Type implementationType, } } - + return declaration; } @@ -497,9 +497,11 @@ public DependencyExpression Setter(string propName = null) IReadOnlyList IConfiguredInstance.InlineDependencies { get; } - - - + + protected override IEnumerable relatedAssemblies() + { + return base.relatedAssemblies().Concat(_inlines.SelectMany(x => x.ReferencedAssemblies())); + } }