{"action":"created","comment":{"url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/comments/148844768","pull_request_review_id":74154680,"id":148844768,"diff_hunk":"@@ -135,9 +189,19 @@ public static class FunctionExtentions {\n \t\t///   If the third attemp fails then this exception should be rethrow to the application.\n \t\t/// </example>\n \t\tpublic static T TimeoutSafeInvoke<T>(this Func<T> function) {\n-\t\t\t// TODO : Implement TimeoutSafeInvoke<T>\n-\t\t\tthrow new NotImplementedException();\n-\t\t}\n+            for (int i = 0; i < 3; i++)\n+            {\n+                try\n+                {\n+                    return function();\n+                }\n+                catch (System.Net.WebException exc)\n+                {\n+                    System.Diagnostics.Debug.WriteLine(exc);\n+                }\n+            }\n+            throw new System.Net.WebException();","path":"02-Generics/Generics/Generics.cs","position":149,"original_position":149,"commit_id":"bfc7f329b938acc9cdaec2bf492ef962fb882893","original_commit_id":"bfc7f329b938acc9cdaec2bf492ef962fb882893","user":{"login":"AlexMokin","id":7272208,"avatar_url":"https://avatars1.githubusercontent.com/u/7272208?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMokin","html_url":"https://github.com/AlexMokin","followers_url":"https://api.github.com/users/AlexMokin/followers","following_url":"https://api.github.com/users/AlexMokin/following{/other_user}","gists_url":"https://api.github.com/users/AlexMokin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMokin/subscriptions","organizations_url":"https://api.github.com/users/AlexMokin/orgs","repos_url":"https://api.github.com/users/AlexMokin/repos","events_url":"https://api.github.com/users/AlexMokin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMokin/received_events","type":"User","site_admin":false},"body":"original exception has to be thrown","created_at":"2017-11-03T17:22:42Z","updated_at":"2017-11-03T17:22:42Z","html_url":"https://github.com/AisBrestEDU/net-training/pull/48#discussion_r148844768","pull_request_url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/comments/148844768"},"html":{"href":"https://github.com/AisBrestEDU/net-training/pull/48#discussion_r148844768"},"pull_request":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48","id":150028299,"html_url":"https://github.com/AisBrestEDU/net-training/pull/48","diff_url":"https://github.com/AisBrestEDU/net-training/pull/48.diff","patch_url":"https://github.com/AisBrestEDU/net-training/pull/48.patch","issue_url":"https://api.github.com/repos/AisBrestEDU/net-training/issues/48","number":48,"state":"open","locked":false,"title":"02-generics","user":{"login":"SergeyMokin","id":18099408,"avatar_url":"https://avatars0.githubusercontent.com/u/18099408?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyMokin","html_url":"https://github.com/SergeyMokin","followers_url":"https://api.github.com/users/SergeyMokin/followers","following_url":"https://api.github.com/users/SergeyMokin/following{/other_user}","gists_url":"https://api.github.com/users/SergeyMokin/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyMokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyMokin/subscriptions","organizations_url":"https://api.github.com/users/SergeyMokin/orgs","repos_url":"https://api.github.com/users/SergeyMokin/repos","events_url":"https://api.github.com/users/SergeyMokin/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyMokin/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-01T12:34:24Z","updated_at":"2017-11-03T17:22:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b4b3ff3f6f0a8af07b10fb139d98733ce444012","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48/commits","review_comments_url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48/comments","review_comment_url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AisBrestEDU/net-training/issues/48/comments","statuses_url":"https://api.github.com/repos/AisBrestEDU/net-training/statuses/bfc7f329b938acc9cdaec2bf492ef962fb882893","head":{"label":"SergeyMokin:02-generics","ref":"02-generics","sha":"bfc7f329b938acc9cdaec2bf492ef962fb882893","user":{"login":"SergeyMokin","id":18099408,"avatar_url":"https://avatars0.githubusercontent.com/u/18099408?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyMokin","html_url":"https://github.com/SergeyMokin","followers_url":"https://api.github.com/users/SergeyMokin/followers","following_url":"https://api.github.com/users/SergeyMokin/following{/other_user}","gists_url":"https://api.github.com/users/SergeyMokin/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyMokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyMokin/subscriptions","organizations_url":"https://api.github.com/users/SergeyMokin/orgs","repos_url":"https://api.github.com/users/SergeyMokin/repos","events_url":"https://api.github.com/users/SergeyMokin/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyMokin/received_events","type":"User","site_admin":false},"repo":{"id":109126296,"name":"net-training","full_name":"SergeyMokin/net-training","owner":{"login":"SergeyMokin","id":18099408,"avatar_url":"https://avatars0.githubusercontent.com/u/18099408?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyMokin","html_url":"https://github.com/SergeyMokin","followers_url":"https://api.github.com/users/SergeyMokin/followers","following_url":"https://api.github.com/users/SergeyMokin/following{/other_user}","gists_url":"https://api.github.com/users/SergeyMokin/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyMokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyMokin/subscriptions","organizations_url":"https://api.github.com/users/SergeyMokin/orgs","repos_url":"https://api.github.com/users/SergeyMokin/repos","events_url":"https://api.github.com/users/SergeyMokin/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyMokin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SergeyMokin/net-training","description":null,"fork":true,"url":"https://api.github.com/repos/SergeyMokin/net-training","forks_url":"https://api.github.com/repos/SergeyMokin/net-training/forks","keys_url":"https://api.github.com/repos/SergeyMokin/net-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SergeyMokin/net-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SergeyMokin/net-training/teams","hooks_url":"https://api.github.com/repos/SergeyMokin/net-training/hooks","issue_events_url":"https://api.github.com/repos/SergeyMokin/net-training/issues/events{/number}","events_url":"https://api.github.com/repos/SergeyMokin/net-training/events","assignees_url":"https://api.github.com/repos/SergeyMokin/net-training/assignees{/user}","branches_url":"https://api.github.com/repos/SergeyMokin/net-training/branches{/branch}","tags_url":"https://api.github.com/repos/SergeyMokin/net-training/tags","blobs_url":"https://api.github.com/repos/SergeyMokin/net-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SergeyMokin/net-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SergeyMokin/net-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/SergeyMokin/net-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SergeyMokin/net-training/statuses/{sha}","languages_url":"https://api.github.com/repos/SergeyMokin/net-training/languages","stargazers_url":"https://api.github.com/repos/SergeyMokin/net-training/stargazers","contributors_url":"https://api.github.com/repos/SergeyMokin/net-training/contributors","subscribers_url":"https://api.github.com/repos/SergeyMokin/net-training/subscribers","subscription_url":"https://api.github.com/repos/SergeyMokin/net-training/subscription","commits_url":"https://api.github.com/repos/SergeyMokin/net-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/SergeyMokin/net-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/SergeyMokin/net-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/SergeyMokin/net-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/SergeyMokin/net-training/contents/{+path}","compare_url":"https://api.github.com/repos/SergeyMokin/net-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SergeyMokin/net-training/merges","archive_url":"https://api.github.com/repos/SergeyMokin/net-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SergeyMokin/net-training/downloads","issues_url":"https://api.github.com/repos/SergeyMokin/net-training/issues{/number}","pulls_url":"https://api.github.com/repos/SergeyMokin/net-training/pulls{/number}","milestones_url":"https://api.github.com/repos/SergeyMokin/net-training/milestones{/number}","notifications_url":"https://api.github.com/repos/SergeyMokin/net-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SergeyMokin/net-training/labels{/name}","releases_url":"https://api.github.com/repos/SergeyMokin/net-training/releases{/id}","deployments_url":"https://api.github.com/repos/SergeyMokin/net-training/deployments","created_at":"2017-11-01T12:03:30Z","updated_at":"2017-11-01T12:03:32Z","pushed_at":"2017-11-03T14:53:02Z","git_url":"git://github.com/SergeyMokin/net-training.git","ssh_url":"git@github.com:SergeyMokin/net-training.git","clone_url":"https://github.com/SergeyMokin/net-training.git","svn_url":"https://github.com/SergeyMokin/net-training","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AisBrestEDU:master","ref":"master","sha":"d8dd080c0dd8f7c43c0af03b2a27448f38ce81ea","user":{"login":"AisBrestEDU","id":31565120,"avatar_url":"https://avatars1.githubusercontent.com/u/31565120?v=4","gravatar_id":"","url":"https://api.github.com/users/AisBrestEDU","html_url":"https://github.com/AisBrestEDU","followers_url":"https://api.github.com/users/AisBrestEDU/followers","following_url":"https://api.github.com/users/AisBrestEDU/following{/other_user}","gists_url":"https://api.github.com/users/AisBrestEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/AisBrestEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AisBrestEDU/subscriptions","organizations_url":"https://api.github.com/users/AisBrestEDU/orgs","repos_url":"https://api.github.com/users/AisBrestEDU/repos","events_url":"https://api.github.com/users/AisBrestEDU/events{/privacy}","received_events_url":"https://api.github.com/users/AisBrestEDU/received_events","type":"Organization","site_admin":false},"repo":{"id":106330511,"name":"net-training","full_name":"AisBrestEDU/net-training","owner":{"login":"AisBrestEDU","id":31565120,"avatar_url":"https://avatars1.githubusercontent.com/u/31565120?v=4","gravatar_id":"","url":"https://api.github.com/users/AisBrestEDU","html_url":"https://github.com/AisBrestEDU","followers_url":"https://api.github.com/users/AisBrestEDU/followers","following_url":"https://api.github.com/users/AisBrestEDU/following{/other_user}","gists_url":"https://api.github.com/users/AisBrestEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/AisBrestEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AisBrestEDU/subscriptions","organizations_url":"https://api.github.com/users/AisBrestEDU/orgs","repos_url":"https://api.github.com/users/AisBrestEDU/repos","events_url":"https://api.github.com/users/AisBrestEDU/events{/privacy}","received_events_url":"https://api.github.com/users/AisBrestEDU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AisBrestEDU/net-training","description":null,"fork":false,"url":"https://api.github.com/repos/AisBrestEDU/net-training","forks_url":"https://api.github.com/repos/AisBrestEDU/net-training/forks","keys_url":"https://api.github.com/repos/AisBrestEDU/net-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AisBrestEDU/net-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AisBrestEDU/net-training/teams","hooks_url":"https://api.github.com/repos/AisBrestEDU/net-training/hooks","issue_events_url":"https://api.github.com/repos/AisBrestEDU/net-training/issues/events{/number}","events_url":"https://api.github.com/repos/AisBrestEDU/net-training/events","assignees_url":"https://api.github.com/repos/AisBrestEDU/net-training/assignees{/user}","branches_url":"https://api.github.com/repos/AisBrestEDU/net-training/branches{/branch}","tags_url":"https://api.github.com/repos/AisBrestEDU/net-training/tags","blobs_url":"https://api.github.com/repos/AisBrestEDU/net-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AisBrestEDU/net-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AisBrestEDU/net-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/AisBrestEDU/net-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AisBrestEDU/net-training/statuses/{sha}","languages_url":"https://api.github.com/repos/AisBrestEDU/net-training/languages","stargazers_url":"https://api.github.com/repos/AisBrestEDU/net-training/stargazers","contributors_url":"https://api.github.com/repos/AisBrestEDU/net-training/contributors","subscribers_url":"https://api.github.com/repos/AisBrestEDU/net-training/subscribers","subscription_url":"https://api.github.com/repos/AisBrestEDU/net-training/subscription","commits_url":"https://api.github.com/repos/AisBrestEDU/net-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/AisBrestEDU/net-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/AisBrestEDU/net-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/AisBrestEDU/net-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/AisBrestEDU/net-training/contents/{+path}","compare_url":"https://api.github.com/repos/AisBrestEDU/net-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AisBrestEDU/net-training/merges","archive_url":"https://api.github.com/repos/AisBrestEDU/net-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AisBrestEDU/net-training/downloads","issues_url":"https://api.github.com/repos/AisBrestEDU/net-training/issues{/number}","pulls_url":"https://api.github.com/repos/AisBrestEDU/net-training/pulls{/number}","milestones_url":"https://api.github.com/repos/AisBrestEDU/net-training/milestones{/number}","notifications_url":"https://api.github.com/repos/AisBrestEDU/net-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AisBrestEDU/net-training/labels{/name}","releases_url":"https://api.github.com/repos/AisBrestEDU/net-training/releases{/id}","deployments_url":"https://api.github.com/repos/AisBrestEDU/net-training/deployments","created_at":"2017-10-09T20:12:52Z","updated_at":"2017-10-09T20:40:17Z","pushed_at":"2017-11-03T14:53:03Z","git_url":"git://github.com/AisBrestEDU/net-training.git","ssh_url":"git@github.com:AisBrestEDU/net-training.git","clone_url":"https://github.com/AisBrestEDU/net-training.git","svn_url":"https://github.com/AisBrestEDU/net-training","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":8,"forks":6,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48"},"html":{"href":"https://github.com/AisBrestEDU/net-training/pull/48"},"issue":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/issues/48"},"comments":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/AisBrestEDU/net-training/statuses/bfc7f329b938acc9cdaec2bf492ef962fb882893"}},"author_association":"NONE"}}
{"actor":{"display_login":"AlexMokin"}}