Now, I'm asking WindsorContainer to pickup from the default configuration file as it supposed to:
45 public static IDbCreator GetDBCreator()
46 {
47 WindsorContainer container = new WindsorContainer(); //WindsorConfigFile);
48 IDbCreator creator = container.Resolve<IDbCreator>(UserPreferences.Instance.LocalDataStoreChosen);
49 return creator;
50 }
With this result:
Of course, AppDomain.CurrentDomain.SetupInformation.ConfigurationFile is pointing to a valid *.dll.config file and is having all keys:
<component id="DbTypeSql"
service="ThinkFarAhead.WordReporter.Data.IDbCreator"
type="ThinkFarAhead.WordReporter.Data.SqlDbCreator, ThinkFarAhead.WordReporter.Data">
</component>
No comments:
Post a Comment