{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/991","repository_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/991/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/991/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/991/events","html_url":"https://github.com/Azure/azure-webjobs-sdk-script/issues/991","id":191824570,"number":991,"title":"Better support for async functions with ServiceBus out bindings","user":{"login":"mthierba","id":3763662,"avatar_url":"https://avatars.githubusercontent.com/u/3763662?v=3","gravatar_id":"","url":"https://api.github.com/users/mthierba","html_url":"https://github.com/mthierba","followers_url":"https://api.github.com/users/mthierba/followers","following_url":"https://api.github.com/users/mthierba/following{/other_user}","gists_url":"https://api.github.com/users/mthierba/gists{/gist_id}","starred_url":"https://api.github.com/users/mthierba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mthierba/subscriptions","organizations_url":"https://api.github.com/users/mthierba/orgs","repos_url":"https://api.github.com/users/mthierba/repos","events_url":"https://api.github.com/users/mthierba/events{/privacy}","received_events_url":"https://api.github.com/users/mthierba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-26T20:16:14Z","updated_at":"2016-11-29T19:40:30Z","closed_at":null,"body":"Currently, ServiceBus messages can only be sent out of an **async** function using the `IAsyncCollector<T>` binding.\r\n\r\nI am specifically using ServiceBus bindings (as opposed to storage queues) in order to be able to schedule those messages to be enqueued at some defined point in the future. That, however, requires direct access to the `BrokeredMessage` which is only supported via the `out BrokeredMessage` binding in Functions.\r\n\r\nThe latter is incompatible with async functions, so one ends up with pretty ugly code when using async-only APIs (HttpClient).\r\n\r\nI would like to able to bind a ServiceBus queue to a `QueueClient` paramter (similar to `CloudBlockBlob` _inout_ bindings) to overcome that limitation."},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/comments/263675991","html_url":"https://github.com/Azure/azure-webjobs-sdk-script/issues/991#issuecomment-263675991","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/991","id":263675991,"user":{"login":"mthierba","id":3763662,"avatar_url":"https://avatars.githubusercontent.com/u/3763662?v=3","gravatar_id":"","url":"https://api.github.com/users/mthierba","html_url":"https://github.com/mthierba","followers_url":"https://api.github.com/users/mthierba/followers","following_url":"https://api.github.com/users/mthierba/following{/other_user}","gists_url":"https://api.github.com/users/mthierba/gists{/gist_id}","starred_url":"https://api.github.com/users/mthierba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mthierba/subscriptions","organizations_url":"https://api.github.com/users/mthierba/orgs","repos_url":"https://api.github.com/users/mthierba/repos","events_url":"https://api.github.com/users/mthierba/events{/privacy}","received_events_url":"https://api.github.com/users/mthierba/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T19:40:30Z","updated_at":"2016-11-29T19:40:30Z","body":"@fabiocav - I didn't actually try it as this only just occurred to me in the course of responding to this issue! This is great news indeed - I literally just went ahead and converted a whole bunch of functions accordingly... These gh issues are more and more becoming _Azure Functions - The Missing Documentation_. Hope others will find this and avoid falling down the same rabbit hole.\r\n\r\nMany thanks! Unless you will want to consider implementing what I had originally asked for - feel free to close this issue now."}}
{"actor":{"display_login":"mthierba"}}