{"action":"closed","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/2723","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2723/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2723/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2723/events","html_url":"https://github.com/Particular/NServiceBus/issues/2723","id":72035911,"number":2723,"title":"Subscription is overwritten and hence fails to receive messages","user":{"login":"particularbot","id":6763890,"avatar_url":"https://avatars.githubusercontent.com/u/6763890?v=3","gravatar_id":"","url":"https://api.github.com/users/particularbot","html_url":"https://github.com/particularbot","followers_url":"https://api.github.com/users/particularbot/followers","following_url":"https://api.github.com/users/particularbot/following{/other_user}","gists_url":"https://api.github.com/users/particularbot/gists{/gist_id}","starred_url":"https://api.github.com/users/particularbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/particularbot/subscriptions","organizations_url":"https://api.github.com/users/particularbot/orgs","repos_url":"https://api.github.com/users/particularbot/repos","events_url":"https://api.github.com/users/particularbot/events{/privacy}","received_events_url":"https://api.github.com/users/particularbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Critical","name":"Critical","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"johnsimons","id":122651,"avatar_url":"https://avatars.githubusercontent.com/u/122651?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsimons","html_url":"https://github.com/johnsimons","followers_url":"https://api.github.com/users/johnsimons/followers","following_url":"https://api.github.com/users/johnsimons/following{/other_user}","gists_url":"https://api.github.com/users/johnsimons/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsimons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsimons/subscriptions","organizations_url":"https://api.github.com/users/johnsimons/orgs","repos_url":"https://api.github.com/users/johnsimons/repos","events_url":"https://api.github.com/users/johnsimons/events{/privacy}","received_events_url":"https://api.github.com/users/johnsimons/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Particular/NServiceBus/milestones/102","html_url":"https://github.com/Particular/NServiceBus/milestones/4.0.11","labels_url":"https://api.github.com/repos/Particular/NServiceBus/milestones/102/labels","id":1090221,"number":102,"title":"4.0.11","description":null,"creator":{"login":"johnsimons","id":122651,"avatar_url":"https://avatars.githubusercontent.com/u/122651?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsimons","html_url":"https://github.com/johnsimons","followers_url":"https://api.github.com/users/johnsimons/followers","following_url":"https://api.github.com/users/johnsimons/following{/other_user}","gists_url":"https://api.github.com/users/johnsimons/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsimons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsimons/subscriptions","organizations_url":"https://api.github.com/users/johnsimons/orgs","repos_url":"https://api.github.com/users/johnsimons/repos","events_url":"https://api.github.com/users/johnsimons/events{/privacy}","received_events_url":"https://api.github.com/users/johnsimons/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-04-30T01:48:37Z","updated_at":"2015-06-23T09:40:23Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-04-30T01:46:55Z","updated_at":"2015-06-23T09:40:23Z","closed_at":"2015-06-23T09:40:23Z","body":"### Who's affected\r\n\r\nVersion 4.0, 4.1 and 4.2 users that's subscribing to 2 different events sharing the same base class\r\n\r\n### Symptoms\r\n\r\nMessage handlers for one of the events won't fire even though the event message is arriving at the endpoint\r\n\r\n\r\n### Original report\r\nOccurs in 4.2 \r\n\r\nGet this solution https://github.com/Particular/BugsRepro/tree/master/1941OverWrittenSubscription\r\nRun it twice to ensure the subscriptions have a chance to wire up.\r\nOn the second run an exception should be thrown since the subscriber only receives an event from publisher 2. Event though the subscriber message mappings says it wants to subscribe to both publishers \r\n\r\n    <MessageEndpointMappings >\r\n      <add Assembly=\"Publisher1.Messages\" Endpoint=\"Publisher1\" />\r\n      <add Assembly=\"Publisher2.Messages\" Endpoint=\"Publisher2\" />\r\n    </MessageEndpointMappings>\r\n\r\nIf you look in the log file for the subscriber you will notice\r\n\r\n```\r\nNServiceBus.Unicast.Routing.StaticMessageRouter [(null)] <(null)> -\r\nRouting for inherited message: Common.Messages.IMyEvent(Publisher2.Messages.MyEvent) updated from Publisher1 to Publisher2\r\n```\r\n\r\nSo it seems NSB is explicitly overwriting the `Publisher1` subscription with the  `Publisher2` subscription.\r\n\r\n"}}