Hey everyone, When using the Resolve<T>(String key, IDictionary arguments) function in Windsor, will the dictionary arguments only apply to the type specified, and not to any of its dependencies?
Currently the following class resolves fine when inserting an NHibernate session into the arguments dictionary: public class DataService { public DataService(ISession session) {} } However, if the ISession is required for additional dependencies below the DataService class, it fails to resolve: public class DataService { public DataService(ISession session, IRepository repository) {} } public class Repository { public Repository(ISession session) {} } with the error: Can't create component 'repository' as it has dependencies to be satisfied. repository is waiting for the following dependencies: Services: - NHibernate.ISession which was not registered. Regards Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---