{"action":"created","issue":{"url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/1","labels_url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/1/comments","events_url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/1/events","html_url":"https://github.com/jamesmontemagno/xamarin.forms-toolkit/pull/1","id":126936950,"number":1,"title":"Added a PositiveAction Action to the MessagingServiceQuestion type.","user":{"login":"jsauvexamarin","id":12718942,"avatar_url":"https://avatars.githubusercontent.com/u/12718942?v=3","gravatar_id":"","url":"https://api.github.com/users/jsauvexamarin","html_url":"https://github.com/jsauvexamarin","followers_url":"https://api.github.com/users/jsauvexamarin/followers","following_url":"https://api.github.com/users/jsauvexamarin/following{/other_user}","gists_url":"https://api.github.com/users/jsauvexamarin/gists{/gist_id}","starred_url":"https://api.github.com/users/jsauvexamarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsauvexamarin/subscriptions","organizations_url":"https://api.github.com/users/jsauvexamarin/orgs","repos_url":"https://api.github.com/users/jsauvexamarin/repos","events_url":"https://api.github.com/users/jsauvexamarin/events{/privacy}","received_events_url":"https://api.github.com/users/jsauvexamarin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-15T19:08:17Z","updated_at":"2016-01-18T16:15:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/pulls/1","html_url":"https://github.com/jamesmontemagno/xamarin.forms-toolkit/pull/1","diff_url":"https://github.com/jamesmontemagno/xamarin.forms-toolkit/pull/1.diff","patch_url":"https://github.com/jamesmontemagno/xamarin.forms-toolkit/pull/1.patch"},"body":"Can be used like this:\r\nvar task = Application.Current?.MainPage?.DisplayAlert(info.Title, info.Question, info.Positive, info.Negative);\r\nif (task != null && await task)\r\n\tinfo?.PositiveAction?.Invoke();"},"comment":{"url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/comments/172574076","html_url":"https://github.com/jamesmontemagno/xamarin.forms-toolkit/pull/1#issuecomment-172574076","issue_url":"https://api.github.com/repos/jamesmontemagno/xamarin.forms-toolkit/issues/1","id":172574076,"user":{"login":"jamesmontemagno","id":1676321,"avatar_url":"https://avatars.githubusercontent.com/u/1676321?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontemagno","html_url":"https://github.com/jamesmontemagno","followers_url":"https://api.github.com/users/jamesmontemagno/followers","following_url":"https://api.github.com/users/jamesmontemagno/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontemagno/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontemagno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontemagno/subscriptions","organizations_url":"https://api.github.com/users/jamesmontemagno/orgs","repos_url":"https://api.github.com/users/jamesmontemagno/repos","events_url":"https://api.github.com/users/jamesmontemagno/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontemagno/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T16:15:08Z","updated_at":"2016-01-18T16:15:08Z","body":"So,\r\n\r\nI would do this:\r\n```\r\npublic Action<bool> OnCompleted { get; set; }\r\n\r\n\r\nMessagingService.Current.Subscribe<MessagingServiceQuestion>(MessageKeys.DisplayQuestion, async (service, info) =>\r\n{\r\n    var task = Application.Current?.MainPage?.DisplayAlert(info.Title, info.Question, info.Positive, info.Negative);\r\n    if (task == null)\r\n      return;\r\n   var result = await task;\r\n    info?.OnCompleted?.Invoke(result);\r\n});\r\n```\r\n\r\nI think this should also be added to the alert, but with just an public Action OnCompleted;"}}