{"action":"created","issue":{"url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/35","repository_url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy","labels_url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/35/comments","events_url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/35/events","html_url":"https://github.com/MRCollective/AzureWebFarm.OctopusDeploy/pull/35","id":138112439,"number":35,"title":"Expose task instead of always blocking","user":{"login":"graemefoster","id":160201,"avatar_url":"https://avatars.githubusercontent.com/u/160201?v=3","gravatar_id":"","url":"https://api.github.com/users/graemefoster","html_url":"https://github.com/graemefoster","followers_url":"https://api.github.com/users/graemefoster/followers","following_url":"https://api.github.com/users/graemefoster/following{/other_user}","gists_url":"https://api.github.com/users/graemefoster/gists{/gist_id}","starred_url":"https://api.github.com/users/graemefoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemefoster/subscriptions","organizations_url":"https://api.github.com/users/graemefoster/orgs","repos_url":"https://api.github.com/users/graemefoster/repos","events_url":"https://api.github.com/users/graemefoster/events{/privacy}","received_events_url":"https://api.github.com/users/graemefoster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T08:37:46Z","updated_at":"2016-03-03T09:31:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/pulls/35","html_url":"https://github.com/MRCollective/AzureWebFarm.OctopusDeploy/pull/35","diff_url":"https://github.com/MRCollective/AzureWebFarm.OctopusDeploy/pull/35.diff","patch_url":"https://github.com/MRCollective/AzureWebFarm.OctopusDeploy/pull/35.patch"},"body":"(I will base this off master I promise. Sorry for it being on-top of the other PR).\r\n\r\nThe default behaviour of webrole is to block.\r\nI've changed it to expose a task which you can choose to wait on, or potentially combine with other tasks to compose behaviour. One such example is to monitor services.\r\n\r\n(and in writing this, I realise I could do this via a thread!)\r\n"},"comment":{"url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/comments/191677313","html_url":"https://github.com/MRCollective/AzureWebFarm.OctopusDeploy/pull/35#issuecomment-191677313","issue_url":"https://api.github.com/repos/MRCollective/AzureWebFarm.OctopusDeploy/issues/35","id":191677313,"user":{"login":"robdmoore","id":573791,"avatar_url":"https://avatars.githubusercontent.com/u/573791?v=3","gravatar_id":"","url":"https://api.github.com/users/robdmoore","html_url":"https://github.com/robdmoore","followers_url":"https://api.github.com/users/robdmoore/followers","following_url":"https://api.github.com/users/robdmoore/following{/other_user}","gists_url":"https://api.github.com/users/robdmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/robdmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robdmoore/subscriptions","organizations_url":"https://api.github.com/users/robdmoore/orgs","repos_url":"https://api.github.com/users/robdmoore/repos","events_url":"https://api.github.com/users/robdmoore/events{/privacy}","received_events_url":"https://api.github.com/users/robdmoore/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T09:31:15Z","updated_at":"2016-03-03T09:31:15Z","body":"This looks good, but there is a breaking change so we'll need to bump major and add breaking change documentation.\r\n\r\nThere isn't a sync context in worker roles to my knowledge, but should we wrap the task in a Task.Run before calling .Wait()?"}}