{"action":"created","comment":{"url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/comments/50721006","id":50721006,"diff_hunk":"@@ -0,0 +1,31 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Net.Mail;\n+using System.Text;\n+using System.Threading;\n+using System.Threading.Tasks;\n+\n+namespace CertiPay.Common.Notifications.Extensions\n+{\n+    public static class SmtpExtensions\n+    {\n+        /// <summary>\n+        /// Extension method to have SmtpClient's SendMailAsync respond to a CancellationToken\n+        /// </summary>\n+        public static async Task SendMailAsync(\n+            this SmtpClient client,\n+            MailMessage message,\n+            CancellationToken token)\n+        {\n+            Action cancelSend = () =>","path":"CertiPay.Common.Notifications/Extensions/SmtpExtensions.cs","position":22,"original_position":21,"commit_id":"849f676f3c0fd24c47e2a3ec172c0c73bb3b4a61","original_commit_id":"bc12c7e9e8a93a3abdb9ef3ebabb707aaf5c271b","user":{"login":"titanium007","id":2637679,"avatar_url":"https://avatars.githubusercontent.com/u/2637679?v=3","gravatar_id":"","url":"https://api.github.com/users/titanium007","html_url":"https://github.com/titanium007","followers_url":"https://api.github.com/users/titanium007/followers","following_url":"https://api.github.com/users/titanium007/following{/other_user}","gists_url":"https://api.github.com/users/titanium007/gists{/gist_id}","starred_url":"https://api.github.com/users/titanium007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titanium007/subscriptions","organizations_url":"https://api.github.com/users/titanium007/orgs","repos_url":"https://api.github.com/users/titanium007/repos","events_url":"https://api.github.com/users/titanium007/events{/privacy}","received_events_url":"https://api.github.com/users/titanium007/received_events","type":"User","site_admin":false},"body":"Add the ref in latest commit","created_at":"2016-01-25T16:54:05Z","updated_at":"2016-01-25T16:54:05Z","html_url":"https://github.com/mattgwagner/CertiPay.Common/pull/5#discussion_r50721006","pull_request_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/comments/50721006"},"html":{"href":"https://github.com/mattgwagner/CertiPay.Common/pull/5#discussion_r50721006"},"pull_request":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5","id":57089760,"html_url":"https://github.com/mattgwagner/CertiPay.Common/pull/5","diff_url":"https://github.com/mattgwagner/CertiPay.Common/pull/5.diff","patch_url":"https://github.com/mattgwagner/CertiPay.Common/pull/5.patch","issue_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/5","number":5,"state":"open","locked":false,"title":"Add cancellation token overload to notification","user":{"login":"titanium007","id":2637679,"avatar_url":"https://avatars.githubusercontent.com/u/2637679?v=3","gravatar_id":"","url":"https://api.github.com/users/titanium007","html_url":"https://github.com/titanium007","followers_url":"https://api.github.com/users/titanium007/followers","following_url":"https://api.github.com/users/titanium007/following{/other_user}","gists_url":"https://api.github.com/users/titanium007/gists{/gist_id}","starred_url":"https://api.github.com/users/titanium007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titanium007/subscriptions","organizations_url":"https://api.github.com/users/titanium007/orgs","repos_url":"https://api.github.com/users/titanium007/repos","events_url":"https://api.github.com/users/titanium007/events{/privacy}","received_events_url":"https://api.github.com/users/titanium007/received_events","type":"User","site_admin":false},"body":"In WorkSafePays Email sender application we have a timeout needs to be implemented. So if if email was not send withing the timeout we should cancel the send. Since the existing method is implemented as SendAsync to abort safely we need an overload which takes a cancellation token.","created_at":"2016-01-25T15:57:48Z","updated_at":"2016-01-25T16:54:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13c81d2033f38cbd78cff7feb9ac539600542ae5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5/commits","review_comments_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5/comments","review_comment_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/5/comments","statuses_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/statuses/849f676f3c0fd24c47e2a3ec172c0c73bb3b4a61","head":{"label":"CertiPay:notifications-enable-cancellation","ref":"notifications-enable-cancellation","sha":"849f676f3c0fd24c47e2a3ec172c0c73bb3b4a61","user":{"login":"CertiPay","id":10031304,"avatar_url":"https://avatars.githubusercontent.com/u/10031304?v=3","gravatar_id":"","url":"https://api.github.com/users/CertiPay","html_url":"https://github.com/CertiPay","followers_url":"https://api.github.com/users/CertiPay/followers","following_url":"https://api.github.com/users/CertiPay/following{/other_user}","gists_url":"https://api.github.com/users/CertiPay/gists{/gist_id}","starred_url":"https://api.github.com/users/CertiPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CertiPay/subscriptions","organizations_url":"https://api.github.com/users/CertiPay/orgs","repos_url":"https://api.github.com/users/CertiPay/repos","events_url":"https://api.github.com/users/CertiPay/events{/privacy}","received_events_url":"https://api.github.com/users/CertiPay/received_events","type":"Organization","site_admin":false},"repo":{"id":30971478,"name":"CertiPay.Common","full_name":"CertiPay/CertiPay.Common","owner":{"login":"CertiPay","id":10031304,"avatar_url":"https://avatars.githubusercontent.com/u/10031304?v=3","gravatar_id":"","url":"https://api.github.com/users/CertiPay","html_url":"https://github.com/CertiPay","followers_url":"https://api.github.com/users/CertiPay/followers","following_url":"https://api.github.com/users/CertiPay/following{/other_user}","gists_url":"https://api.github.com/users/CertiPay/gists{/gist_id}","starred_url":"https://api.github.com/users/CertiPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CertiPay/subscriptions","organizations_url":"https://api.github.com/users/CertiPay/orgs","repos_url":"https://api.github.com/users/CertiPay/repos","events_url":"https://api.github.com/users/CertiPay/events{/privacy}","received_events_url":"https://api.github.com/users/CertiPay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CertiPay/CertiPay.Common","description":"A set of common utilities and pieces of code used in the CertiPay systems","fork":true,"url":"https://api.github.com/repos/CertiPay/CertiPay.Common","forks_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/forks","keys_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/teams","hooks_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/hooks","issue_events_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/issues/events{/number}","events_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/events","assignees_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/assignees{/user}","branches_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/branches{/branch}","tags_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/tags","blobs_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/git/refs{/sha}","trees_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/statuses/{sha}","languages_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/languages","stargazers_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/stargazers","contributors_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/contributors","subscribers_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/subscribers","subscription_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/subscription","commits_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/commits{/sha}","git_commits_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/git/commits{/sha}","comments_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/comments{/number}","issue_comment_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/issues/comments{/number}","contents_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/contents/{+path}","compare_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/merges","archive_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/downloads","issues_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/issues{/number}","pulls_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/pulls{/number}","milestones_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/milestones{/number}","notifications_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/labels{/name}","releases_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/releases{/id}","deployments_url":"https://api.github.com/repos/CertiPay/CertiPay.Common/deployments","created_at":"2015-02-18T15:31:31Z","updated_at":"2016-01-15T13:55:35Z","pushed_at":"2016-01-25T16:53:26Z","git_url":"git://github.com/CertiPay/CertiPay.Common.git","ssh_url":"git@github.com:CertiPay/CertiPay.Common.git","clone_url":"https://github.com/CertiPay/CertiPay.Common.git","svn_url":"https://github.com/CertiPay/CertiPay.Common","homepage":null,"size":690,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattgwagner:master","ref":"master","sha":"4ee654bc375213b2a2dcb6eab8ffb33fb0e20591","user":{"login":"mattgwagner","id":157644,"avatar_url":"https://avatars.githubusercontent.com/u/157644?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgwagner","html_url":"https://github.com/mattgwagner","followers_url":"https://api.github.com/users/mattgwagner/followers","following_url":"https://api.github.com/users/mattgwagner/following{/other_user}","gists_url":"https://api.github.com/users/mattgwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgwagner/subscriptions","organizations_url":"https://api.github.com/users/mattgwagner/orgs","repos_url":"https://api.github.com/users/mattgwagner/repos","events_url":"https://api.github.com/users/mattgwagner/events{/privacy}","received_events_url":"https://api.github.com/users/mattgwagner/received_events","type":"User","site_admin":false},"repo":{"id":30971386,"name":"CertiPay.Common","full_name":"mattgwagner/CertiPay.Common","owner":{"login":"mattgwagner","id":157644,"avatar_url":"https://avatars.githubusercontent.com/u/157644?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgwagner","html_url":"https://github.com/mattgwagner","followers_url":"https://api.github.com/users/mattgwagner/followers","following_url":"https://api.github.com/users/mattgwagner/following{/other_user}","gists_url":"https://api.github.com/users/mattgwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgwagner/subscriptions","organizations_url":"https://api.github.com/users/mattgwagner/orgs","repos_url":"https://api.github.com/users/mattgwagner/repos","events_url":"https://api.github.com/users/mattgwagner/events{/privacy}","received_events_url":"https://api.github.com/users/mattgwagner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattgwagner/CertiPay.Common","description":"A set of common utilities and pieces of code used in the CertiPay systems","fork":false,"url":"https://api.github.com/repos/mattgwagner/CertiPay.Common","forks_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/forks","keys_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/teams","hooks_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/hooks","issue_events_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/events{/number}","events_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/events","assignees_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/assignees{/user}","branches_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/branches{/branch}","tags_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/tags","blobs_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/statuses/{sha}","languages_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/languages","stargazers_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/stargazers","contributors_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/contributors","subscribers_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/subscribers","subscription_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/subscription","commits_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/contents/{+path}","compare_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/merges","archive_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/downloads","issues_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues{/number}","pulls_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls{/number}","milestones_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/milestones{/number}","notifications_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/labels{/name}","releases_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/releases{/id}","deployments_url":"https://api.github.com/repos/mattgwagner/CertiPay.Common/deployments","created_at":"2015-02-18T15:29:22Z","updated_at":"2016-01-20T15:49:43Z","pushed_at":"2016-01-25T16:53:27Z","git_url":"git://github.com/mattgwagner/CertiPay.Common.git","ssh_url":"git@github.com:mattgwagner/CertiPay.Common.git","clone_url":"https://github.com/mattgwagner/CertiPay.Common.git","svn_url":"https://github.com/mattgwagner/CertiPay.Common","homepage":null,"size":665,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5"},"html":{"href":"https://github.com/mattgwagner/CertiPay.Common/pull/5"},"issue":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/5"},"comments":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/mattgwagner/CertiPay.Common/statuses/849f676f3c0fd24c47e2a3ec172c0c73bb3b4a61"}}}}