Menu

#31 double instance of LogSelector

v1.1
open
nobody
Logging (2)
5
2010-11-12
2010-11-12
Anonymous
No

In order to initialize NOperation framework we do something like:

AppSettings.Default = new AppSettings(
new LogSelector(new SelectionStrategy(new LoggerRepository())),
operationsObjectBuilder,
AppSettings.Default.TransactionFactory,
AppSettings.Default.Inspector);

but in case operationsObjectBuilder does not have LogSelector registered the application throws an exception at:

Class: ObjectFactory
Method: private object RegisterAddin(Type typeInterface, object instance)
Line: LogSelector logSelector = this.Builder.Build<LogSelector>();

In case operationsObjectBuilder is based on windsor, 2 separate instances of LogSelector are used in application.

Discussion


Log in to post a comment.