diff --git a/src/Spring/Spring.Core/Context/Attributes/AssemblyObjectDefinitionScanner.cs b/src/Spring/Spring.Core/Context/Attributes/AssemblyObjectDefinitionScanner.cs index 36bd6636..da9acbf8 100644 --- a/src/Spring/Spring.Core/Context/Attributes/AssemblyObjectDefinitionScanner.cs +++ b/src/Spring/Spring.Core/Context/Attributes/AssemblyObjectDefinitionScanner.cs @@ -70,8 +70,9 @@ namespace Spring.Context.Attributes { var definition = new ScannedGenericObjectDefinition(type, Defaults); string objectName = ObjectNameGenerator.GenerateObjectName(definition, registry); + string fullname = type.FullName; - Logger.Debug(m => m("Register Type: {0} with object name '{1}'", type.FullName, objectName)); + Logger.Debug(m => m("Register Type: {0} with object name '{1}'", fullname, objectName)); registry.RegisterObjectDefinition(objectName, definition); } } diff --git a/src/Spring/Spring.Core/Context/Attributes/AssemblyTypeScanner.cs b/src/Spring/Spring.Core/Context/Attributes/AssemblyTypeScanner.cs index c553c5d1..30a4d62e 100644 --- a/src/Spring/Spring.Core/Context/Attributes/AssemblyTypeScanner.cs +++ b/src/Spring/Spring.Core/Context/Attributes/AssemblyTypeScanner.cs @@ -275,7 +275,9 @@ namespace Spring.Context.Attributes if (null != loadedAssembly) { - Logger.Debug(m => m("Add Assembly: {0}", loadedAssembly.FullName)); + string fullname = loadedAssembly.FullName; + Logger.Debug(m => m("Add Assembly: {0}", fullname)); + assemblies.Add(loadedAssembly); } } @@ -359,7 +361,10 @@ namespace Spring.Context.Attributes bool result = AssemblyInclusionPredicates.Any(include => include(assembly)); if (result) - Logger.Debug(m => m("Include Assembly: {0}", assembly.FullName)); + { + string fullname = assembly.FullName; + Logger.Debug(m => m("Include Assembly: {0}", fullname)); + } return result; }