{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/2710","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2710/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2710/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2710/events","html_url":"https://github.com/Particular/NServiceBus/issues/2710","id":67593397,"number":2710,"title":"Bus.Defer sets the OriginatingEndpoint to the local endpoint so there is no ability to reply","user":{"login":"jdrat2000","id":3620645,"avatar_url":"https://avatars.githubusercontent.com/u/3620645?v=3","gravatar_id":"","url":"https://api.github.com/users/jdrat2000","html_url":"https://github.com/jdrat2000","followers_url":"https://api.github.com/users/jdrat2000/followers","following_url":"https://api.github.com/users/jdrat2000/following{/other_user}","gists_url":"https://api.github.com/users/jdrat2000/gists{/gist_id}","starred_url":"https://api.github.com/users/jdrat2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdrat2000/subscriptions","organizations_url":"https://api.github.com/users/jdrat2000/orgs","repos_url":"https://api.github.com/users/jdrat2000/repos","events_url":"https://api.github.com/users/jdrat2000/events{/privacy}","received_events_url":"https://api.github.com/users/jdrat2000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Type:%20Bug","name":"Type: Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-04-10T13:18:29Z","updated_at":"2016-08-18T12:35:33Z","closed_at":null,"body":"In a server handler of a full duplex implementation,  if Bus.Defer is used to delay processing on the server, Bus.Reply will no longer work because the OriginatingEndpoint header is being changed to the local endpoint name.   If you use Bus.Reply the message is dropped back into the local queue.   This causes an exception because there is no local handler for the reply message.   \r\n\r\nSee support case 10199.\r\n\r\nThis behavior is not expect and the documentation is unclear.   What is the proper use of the Defer capability in a handler?  I haven't tagged this as a bug but perhaps it could be considered one. \r\n\r\nWhen used for error and retry alternatives to exist.  Second Level Retry is an option but will impact all handlers in the endpoint.   A Saga can be created but has the side effects of requiring additional persistence and performance considerations.  "},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/240709555","html_url":"https://github.com/Particular/NServiceBus/issues/2710#issuecomment-240709555","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2710","id":240709555,"user":{"login":"andreasohlund","id":125028,"avatar_url":"https://avatars.githubusercontent.com/u/125028?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasohlund","html_url":"https://github.com/andreasohlund","followers_url":"https://api.github.com/users/andreasohlund/followers","following_url":"https://api.github.com/users/andreasohlund/following{/other_user}","gists_url":"https://api.github.com/users/andreasohlund/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasohlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasohlund/subscriptions","organizations_url":"https://api.github.com/users/andreasohlund/orgs","repos_url":"https://api.github.com/users/andreasohlund/repos","events_url":"https://api.github.com/users/andreasohlund/events{/privacy}","received_events_url":"https://api.github.com/users/andreasohlund/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T12:35:33Z","updated_at":"2016-08-18T12:35:33Z","body":"Sounds fair enough, do we need to update any doco?"}}
{"actor":{"display_login":"andreasohlund"}}