{"action":"created","issue":{"url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/390","labels_url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/390/comments","events_url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/390/events","html_url":"https://github.com/EasyNetQ/EasyNetQ/pull/390","id":59365156,"number":390,"title":"AdvancedBus event update","user":{"login":"mleenhardt","id":8008842,"avatar_url":"https://avatars.githubusercontent.com/u/8008842?v=3","gravatar_id":"","url":"https://api.github.com/users/mleenhardt","html_url":"https://github.com/mleenhardt","followers_url":"https://api.github.com/users/mleenhardt/followers","following_url":"https://api.github.com/users/mleenhardt/following{/other_user}","gists_url":"https://api.github.com/users/mleenhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/mleenhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleenhardt/subscriptions","organizations_url":"https://api.github.com/users/mleenhardt/orgs","repos_url":"https://api.github.com/users/mleenhardt/repos","events_url":"https://api.github.com/users/mleenhardt/events{/privacy}","received_events_url":"https://api.github.com/users/mleenhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-28T23:14:23Z","updated_at":"2015-03-03T14:30:16Z","closed_at":"2015-03-02T16:41:25Z","pull_request":{"url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/pulls/390","html_url":"https://github.com/EasyNetQ/EasyNetQ/pull/390","diff_url":"https://github.com/EasyNetQ/EasyNetQ/pull/390.diff","patch_url":"https://github.com/EasyNetQ/EasyNetQ/pull/390.patch"},"body":"#107 \r\n\r\n- Events have been removed from `IBus`, they're only available in `IAdvancedBus`.\r\n- new class `AdvancedBusEventHandlers` allows to specify handlers before `RabbitAdvancedBus` is instantiated, thus we can 'pre subscribe' to all of them and catch the first `Connected` event that happens during `RabbitAdvancedBus` ctor. This doesn't change anything on the events themself, it's still possible to replace the handlers or subscribe / unsubcribe at a later stage.\r\n- Events in `IAdvancedBus` now accept `EventHandler` handlers, `Blocked` accepts a `EventHandler<ConnectionBlockedEventArgs>` and `MessageReturned` accepts `EventHandler<MessageReturnedEventArgs>`.\r\n- All methods in `RabbitHutch` have been duplicated and now accept an `AdvancedBusEventHandlers`, which gets registered in the container as a factory method that returns itself (same as `ConnectionConfiguration`)."},"comment":{"url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/comments/76955077","html_url":"https://github.com/EasyNetQ/EasyNetQ/pull/390#issuecomment-76955077","issue_url":"https://api.github.com/repos/EasyNetQ/EasyNetQ/issues/390","id":76955077,"user":{"login":"mleenhardt","id":8008842,"avatar_url":"https://avatars.githubusercontent.com/u/8008842?v=3","gravatar_id":"","url":"https://api.github.com/users/mleenhardt","html_url":"https://github.com/mleenhardt","followers_url":"https://api.github.com/users/mleenhardt/followers","following_url":"https://api.github.com/users/mleenhardt/following{/other_user}","gists_url":"https://api.github.com/users/mleenhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/mleenhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleenhardt/subscriptions","organizations_url":"https://api.github.com/users/mleenhardt/orgs","repos_url":"https://api.github.com/users/mleenhardt/repos","events_url":"https://api.github.com/users/mleenhardt/events{/privacy}","received_events_url":"https://api.github.com/users/mleenhardt/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T14:30:16Z","updated_at":"2015-03-03T14:30:16Z","body":"@mikehadlow can you please re open this?"}}