mirror of https://github.com/AMT-Cheif/Stylet.git
Tweak name of generated abstract factory implementations
This commit is contained in:
parent
9ab3655c5f
commit
25e90926a4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue