Tweak name of generated abstract factory implementations

This commit is contained in:
Antony Male 2015-02-19 22:19:21 +00:00
parent 9ab3655c5f
commit 25e90926a4
1 changed files with 2 additions and 2 deletions

View File

@ -389,8 +389,8 @@ namespace StyletIoC.Internal
this.factoryBuilder = moduleBuilder;
}
// If the service is 'ISomethingFactory', call out new class 'SomethingFactory'
var typeBuilder = this.factoryBuilder.DefineType(serviceType.Name.Substring(1), TypeAttributes.Public);
// If the service is 'ISomethingFactory', call our new class 'GeneratedSomethingFactory'
var typeBuilder = this.factoryBuilder.DefineType("Generated" + serviceType.Name.Substring(1), TypeAttributes.Public);
typeBuilder.AddInterfaceImplementation(serviceType);
// Define a field which holds a reference to the registration context