{"action":"opened","issue":{"url":"https://api.github.com/repos/castleproject/Windsor/issues/123","repository_url":"https://api.github.com/repos/castleproject/Windsor","labels_url":"https://api.github.com/repos/castleproject/Windsor/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/castleproject/Windsor/issues/123/comments","events_url":"https://api.github.com/repos/castleproject/Windsor/issues/123/events","html_url":"https://github.com/castleproject/Windsor/issues/123","id":135680710,"number":123,"title":"Inline dependencies issue","user":{"login":"bemaxima","id":16834417,"avatar_url":"https://avatars.githubusercontent.com/u/16834417?v=3","gravatar_id":"","url":"https://api.github.com/users/bemaxima","html_url":"https://github.com/bemaxima","followers_url":"https://api.github.com/users/bemaxima/followers","following_url":"https://api.github.com/users/bemaxima/following{/other_user}","gists_url":"https://api.github.com/users/bemaxima/gists{/gist_id}","starred_url":"https://api.github.com/users/bemaxima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bemaxima/subscriptions","organizations_url":"https://api.github.com/users/bemaxima/orgs","repos_url":"https://api.github.com/users/bemaxima/repos","events_url":"https://api.github.com/users/bemaxima/events{/privacy}","received_events_url":"https://api.github.com/users/bemaxima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T09:20:26Z","updated_at":"2016-02-23T09:20:26Z","closed_at":null,"body":"Hello;\r\n\r\nI have a situation like this.\r\n`\r\nstatic void Main(string[] args)\r\n\t\t{\r\n\r\n\t\t\t\r\n\t\t\tvar container = new Castle.Windsor.WindsorContainer();\r\n\r\n\t\t\tcontainer.Register(\r\n\t\t\t\tComponent.For<IHigherBusiness>().ImplementedBy<HigherBusiness>().DependsOn(Dependency.OnComponent<ILogger, FullDetailLogger>())\r\n\t\t\t\t);\r\n\r\n\t\t\tcontainer.Register(Component.For<ISomeBusiness>().ImplementedBy<Business>());\r\n\t\t\tcontainer.Register(Component.For<ILogger>().ImplementedBy<FullDetailLogger>().IsFallback());\r\n\t\t\tcontainer.Register(Component.For<ILogger>().ImplementedBy<SimpleLogger>());\r\n\r\n\r\n\t\t\tvar business = container.Resolve<IHigherBusiness>();\r\n\t\t\tbusiness.DoSomething();\r\n\r\n\t\t\tvar logger = container.Resolve<ILogger>();\r\n\t\t\tlogger.Log(\"Some Log... .\"); \r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\tpublic interface IHigherBusiness\r\n\t{\r\n\t\tvoid DoSomething();\r\n\t}\r\n\r\n\tpublic class HigherBusiness : IHigherBusiness\r\n\t{\r\n\t\tprivate ISomeBusiness someBusiness;\r\n\r\n\t\tpublic HigherBusiness(ISomeBusiness someBusiness)\r\n\t\t{\r\n\t\t\tthis.someBusiness = someBusiness;\r\n\t\t}\r\n\t\tpublic void DoSomething()\r\n\t\t{\r\n\t\t\tsomeBusiness.DoSomething();\r\n\t\t}\r\n\t}\r\n\r\n\tpublic interface ISomeBusiness\r\n\t{\r\n\t\tvoid DoSomething();\r\n\t}\r\n\r\n\tpublic class Business : ISomeBusiness\r\n\t{\r\n\t\tprivate ILogger logger;\r\n\t\tpublic Business(ILogger logger)\r\n\t\t{\r\n\t\t\tthis.logger = logger;\r\n\t\t}\r\n\t\tpublic void DoSomething()\r\n\t\t{\r\n\t\t\tlogger.Log(\"Message\");\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tpublic interface ILogger\r\n\t{\r\n\t\tvoid Log(string message);\r\n\t}\r\n\r\n\tpublic class SimpleLogger : ILogger\r\n\t{\r\n\r\n\t\tpublic void Log(string message)\r\n\t\t{\r\n\t\t\tConsole.WriteLine(\"Simple Logger: \" + message);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic class FullDetailLogger : ILogger\r\n\t{\r\n\t\tpublic void Log(string message)\r\n\t\t{\r\n\t\t\tConsole.WriteLine(\"Full detail Logger: \" + message);\r\n\t\t}\r\n\t}\r\n`\r\nThe result is...\r\n\r\n> Simple Logger: Message\r\nSimple Logger: Some Log... .\r\n\r\nbut I expect this\r\n\r\n> Full detail Logger:  Message\r\nSimple Logger: Some Log... .\r\n\r\nHow can I achieve this ?\r\nThanks in advanced\r\n"}}