{"action":"created","issue":{"url":"https://api.github.com/repos/ipjohnson/Grace/issues/182","repository_url":"https://api.github.com/repos/ipjohnson/Grace","labels_url":"https://api.github.com/repos/ipjohnson/Grace/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/ipjohnson/Grace/issues/182/comments","events_url":"https://api.github.com/repos/ipjohnson/Grace/issues/182/events","html_url":"https://github.com/ipjohnson/Grace/issues/182","id":347589724,"node_id":"MDU6SXNzdWUzNDc1ODk3MjQ=","number":182,"title":"Have some problem with RawRabbit Instantiation","user":{"login":"shahabganji","id":4405518,"node_id":"MDQ6VXNlcjQ0MDU1MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/4405518?v=4","gravatar_id":"","url":"https://api.github.com/users/shahabganji","html_url":"https://github.com/shahabganji","followers_url":"https://api.github.com/users/shahabganji/followers","following_url":"https://api.github.com/users/shahabganji/following{/other_user}","gists_url":"https://api.github.com/users/shahabganji/gists{/gist_id}","starred_url":"https://api.github.com/users/shahabganji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahabganji/subscriptions","organizations_url":"https://api.github.com/users/shahabganji/orgs","repos_url":"https://api.github.com/users/shahabganji/repos","events_url":"https://api.github.com/users/shahabganji/events{/privacy}","received_events_url":"https://api.github.com/users/shahabganji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-04T05:30:52Z","updated_at":"2018-08-05T04:13:52Z","closed_at":null,"author_association":"NONE","body":"I was creatng a sample using [RawRabbit](https://github.com/pardahlman/RawRabbit) and as always I used Grace to handle DI. however, I faced an [issue](https://github.com/pardahlman/RawRabbit/issues/363) in which the publisher and subscriber do not work as expected. After investigating through we got suspicious to how the objects are created so I commented the Grace parts and used the default IOC, surprisingly everything worked just fine,\r\n\r\nI have a sample repository [here](https://github.com/shahabganji/ShoppingCartSample)\r\n\r\n[this](https://github.com/shahabganji/ShoppingCartSample/commit/81b8e73eec172c9d0594727abe7c015a6ecff359) commit uses Grace and [this](https://github.com/shahabganji/ShoppingCartSample/commit/43524a286ccb54c12681e7d1ab2068806d4895ec) one with default IOC\r\n\r\nI would be grateful if you could take a look.\r\n\r\nRegards,\r\n-Shahab"},"comment":{"url":"https://api.github.com/repos/ipjohnson/Grace/issues/comments/410494473","html_url":"https://github.com/ipjohnson/Grace/issues/182#issuecomment-410494473","issue_url":"https://api.github.com/repos/ipjohnson/Grace/issues/182","id":410494473,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQ5NDQ3Mw==","user":{"login":"shahabganji","id":4405518,"node_id":"MDQ6VXNlcjQ0MDU1MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/4405518?v=4","gravatar_id":"","url":"https://api.github.com/users/shahabganji","html_url":"https://github.com/shahabganji","followers_url":"https://api.github.com/users/shahabganji/followers","following_url":"https://api.github.com/users/shahabganji/following{/other_user}","gists_url":"https://api.github.com/users/shahabganji/gists{/gist_id}","starred_url":"https://api.github.com/users/shahabganji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahabganji/subscriptions","organizations_url":"https://api.github.com/users/shahabganji/orgs","repos_url":"https://api.github.com/users/shahabganji/repos","events_url":"https://api.github.com/users/shahabganji/events{/privacy}","received_events_url":"https://api.github.com/users/shahabganji/received_events","type":"User","site_admin":false},"created_at":"2018-08-05T04:13:52Z","updated_at":"2018-08-05T04:13:52Z","author_association":"NONE","body":"@ipjohnson \r\n\r\nYour error is due totally to the absence of [RabbitMQ](https://www.rabbitmq.com/), you need to either have it on your machine or docker, if the latter, bear in mind to change the Hostnames and port to what docker exposes.\r\n\r\n> Do you know the specific type that's being constructed incorrectly?\r\n\r\nAFAIK it uses ```RawRabbit.Instantiation.RawRabbitFactory``` to instantiate ```IBusClient``` instances and the resturen value is of Type ```RawRabbit.Instantiation.Disposable.BusClient```.\r\n\r\n[RawRabbitFactory](https://github.com/pardahlman/RawRabbit/blob/fd22d535a7b566a06ab90a0c251f420249a6bb2e/src/RawRabbit/Instantiation/RawRabbitFactory.cs) and [BusClient](https://github.com/pardahlman/RawRabbit/blob/e4b6081ee3d057bfaa4b634d92e5a23a7d0de6c1/src/RawRabbit/Instantiation/Disposable/BusClient.cs#L10)\r\n\r\n```cs\r\n this.Client = RawRabbitFactory.CreateSingleton(new RawRabbitOptions() {\r\n                ClientConfiguration = new RawRabbitConfiguration() {\r\n                    Hostnames = new System.Collections.Generic.List<string>() { \"localhost\" },\r\n                        Password = \"guest\",\r\n                        VirtualHost = \"/\",\r\n                        Port = 5672,\r\n                        Username = \"guest\"\r\n\r\n                }\r\n            });\r\n```\r\n\r\n\r\nA code like that :point_up:  works with Grace, as mentioned [here](https://github.com/pardahlman/RawRabbit/issues/363#issuecomment-409928362)\r\n"}}
{"actor":{"display_login":"shahabganji"}}