{"action":"created","comment":{"url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/comments/87272868","pull_request_review_id":7890967,"id":87272868,"diff_hunk":"@@ -0,0 +1,68 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Xml.Linq;\n+using System.IO;\n+\n+namespace WebCrawlerTest.Model\n+{\n+    internal class XmlConfigReader : IConfigReader\n+    {\n+        private string configPath;\n+        public int Depth { get; set; }\n+        public string[] RootUrls { get; set; } \n+\n+        public XmlConfigReader(string configPath)\n+        {\n+            this.configPath = configPath;\n+        }\n+\n+        public void ReadConfigInformation()\n+        {\n+            if (!File.Exists(configPath))\n+                throw new FileNotFoundException(\"Wrong path to the config file.\");\n+\n+            XDocument xDocument = XDocument.Load(configPath);\n+            GetDepth(xDocument);\n+            GetRootUrls(xDocument);\n+        }\n+\n+        private void GetDepth(XDocument doc)\n+        {\n+            try\n+            {\n+                string value = doc.Element(\"root\").Element(\"depth\").Value;\n+                Depth = Int32.Parse(value);","path":"WebCrawlerTest/Model/XmlConfigReader.cs","position":35,"original_position":35,"commit_id":"1414d3c3995a2691f4f0dbe2354127d9209336ab","original_commit_id":"1414d3c3995a2691f4f0dbe2354127d9209336ab","user":{"login":"RamanBut-Husaim","id":5213282,"avatar_url":"https://avatars.githubusercontent.com/u/5213282?v=3","gravatar_id":"","url":"https://api.github.com/users/RamanBut-Husaim","html_url":"https://github.com/RamanBut-Husaim","followers_url":"https://api.github.com/users/RamanBut-Husaim/followers","following_url":"https://api.github.com/users/RamanBut-Husaim/following{/other_user}","gists_url":"https://api.github.com/users/RamanBut-Husaim/gists{/gist_id}","starred_url":"https://api.github.com/users/RamanBut-Husaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamanBut-Husaim/subscriptions","organizations_url":"https://api.github.com/users/RamanBut-Husaim/orgs","repos_url":"https://api.github.com/users/RamanBut-Husaim/repos","events_url":"https://api.github.com/users/RamanBut-Husaim/events{/privacy}","received_events_url":"https://api.github.com/users/RamanBut-Husaim/received_events","type":"User","site_admin":false},"body":"@dinasergienko Is is better to user `TryParse` as it will not throw an exception. Be ready to answer why throwing an exception is an expensive operation.","created_at":"2016-11-09T20:40:07Z","updated_at":"2016-11-09T20:44:53Z","html_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7#discussion_r87272868","pull_request_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/comments/87272868"},"html":{"href":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7#discussion_r87272868"},"pull_request":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7","id":93029864,"html_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7","diff_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7.diff","patch_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7.patch","issue_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/7","number":7,"state":"open","locked":false,"title":"451001 - DinaSergienko","user":{"login":"dinasergienko","id":15804039,"avatar_url":"https://avatars.githubusercontent.com/u/15804039?v=3","gravatar_id":"","url":"https://api.github.com/users/dinasergienko","html_url":"https://github.com/dinasergienko","followers_url":"https://api.github.com/users/dinasergienko/followers","following_url":"https://api.github.com/users/dinasergienko/following{/other_user}","gists_url":"https://api.github.com/users/dinasergienko/gists{/gist_id}","starred_url":"https://api.github.com/users/dinasergienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinasergienko/subscriptions","organizations_url":"https://api.github.com/users/dinasergienko/orgs","repos_url":"https://api.github.com/users/dinasergienko/repos","events_url":"https://api.github.com/users/dinasergienko/events{/privacy}","received_events_url":"https://api.github.com/users/dinasergienko/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-09T20:07:11Z","updated_at":"2016-11-09T20:44:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2d6ec358bd09e43ef244547a909bd0055bea4ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7/commits","review_comments_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7/comments","review_comment_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/7/comments","statuses_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/statuses/1414d3c3995a2691f4f0dbe2354127d9209336ab","head":{"label":"dinasergienko:master","ref":"master","sha":"1414d3c3995a2691f4f0dbe2354127d9209336ab","user":{"login":"dinasergienko","id":15804039,"avatar_url":"https://avatars.githubusercontent.com/u/15804039?v=3","gravatar_id":"","url":"https://api.github.com/users/dinasergienko","html_url":"https://github.com/dinasergienko","followers_url":"https://api.github.com/users/dinasergienko/followers","following_url":"https://api.github.com/users/dinasergienko/following{/other_user}","gists_url":"https://api.github.com/users/dinasergienko/gists{/gist_id}","starred_url":"https://api.github.com/users/dinasergienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinasergienko/subscriptions","organizations_url":"https://api.github.com/users/dinasergienko/orgs","repos_url":"https://api.github.com/users/dinasergienko/repos","events_url":"https://api.github.com/users/dinasergienko/events{/privacy}","received_events_url":"https://api.github.com/users/dinasergienko/received_events","type":"User","site_admin":false},"repo":{"id":72355125,"name":"MPP.WebCrawler","full_name":"dinasergienko/MPP.WebCrawler","owner":{"login":"dinasergienko","id":15804039,"avatar_url":"https://avatars.githubusercontent.com/u/15804039?v=3","gravatar_id":"","url":"https://api.github.com/users/dinasergienko","html_url":"https://github.com/dinasergienko","followers_url":"https://api.github.com/users/dinasergienko/followers","following_url":"https://api.github.com/users/dinasergienko/following{/other_user}","gists_url":"https://api.github.com/users/dinasergienko/gists{/gist_id}","starred_url":"https://api.github.com/users/dinasergienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinasergienko/subscriptions","organizations_url":"https://api.github.com/users/dinasergienko/orgs","repos_url":"https://api.github.com/users/dinasergienko/repos","events_url":"https://api.github.com/users/dinasergienko/events{/privacy}","received_events_url":"https://api.github.com/users/dinasergienko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinasergienko/MPP.WebCrawler","description":"MPP.Lab03","fork":true,"url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler","forks_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/forks","keys_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/teams","hooks_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/hooks","issue_events_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/issues/events{/number}","events_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/events","assignees_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/assignees{/user}","branches_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/branches{/branch}","tags_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/tags","blobs_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/statuses/{sha}","languages_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/languages","stargazers_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/stargazers","contributors_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/contributors","subscribers_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/subscribers","subscription_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/subscription","commits_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/contents/{+path}","compare_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/merges","archive_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/downloads","issues_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/issues{/number}","pulls_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/pulls{/number}","milestones_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/milestones{/number}","notifications_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/labels{/name}","releases_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/releases{/id}","deployments_url":"https://api.github.com/repos/dinasergienko/MPP.WebCrawler/deployments","created_at":"2016-10-30T14:43:37Z","updated_at":"2016-11-05T13:54:09Z","pushed_at":"2016-11-09T19:51:20Z","git_url":"git://github.com/dinasergienko/MPP.WebCrawler.git","ssh_url":"git@github.com:dinasergienko/MPP.WebCrawler.git","clone_url":"https://github.com/dinasergienko/MPP.WebCrawler.git","svn_url":"https://github.com/dinasergienko/MPP.WebCrawler","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RamanBut-Husaim:451001-DinaSergienko","ref":"451001-DinaSergienko","sha":"28f5dd7b943bdb32043b2eb9d531e8ef95b6b917","user":{"login":"RamanBut-Husaim","id":5213282,"avatar_url":"https://avatars.githubusercontent.com/u/5213282?v=3","gravatar_id":"","url":"https://api.github.com/users/RamanBut-Husaim","html_url":"https://github.com/RamanBut-Husaim","followers_url":"https://api.github.com/users/RamanBut-Husaim/followers","following_url":"https://api.github.com/users/RamanBut-Husaim/following{/other_user}","gists_url":"https://api.github.com/users/RamanBut-Husaim/gists{/gist_id}","starred_url":"https://api.github.com/users/RamanBut-Husaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamanBut-Husaim/subscriptions","organizations_url":"https://api.github.com/users/RamanBut-Husaim/orgs","repos_url":"https://api.github.com/users/RamanBut-Husaim/repos","events_url":"https://api.github.com/users/RamanBut-Husaim/events{/privacy}","received_events_url":"https://api.github.com/users/RamanBut-Husaim/received_events","type":"User","site_admin":false},"repo":{"id":67539172,"name":"MPP.WebCrawler","full_name":"RamanBut-Husaim/MPP.WebCrawler","owner":{"login":"RamanBut-Husaim","id":5213282,"avatar_url":"https://avatars.githubusercontent.com/u/5213282?v=3","gravatar_id":"","url":"https://api.github.com/users/RamanBut-Husaim","html_url":"https://github.com/RamanBut-Husaim","followers_url":"https://api.github.com/users/RamanBut-Husaim/followers","following_url":"https://api.github.com/users/RamanBut-Husaim/following{/other_user}","gists_url":"https://api.github.com/users/RamanBut-Husaim/gists{/gist_id}","starred_url":"https://api.github.com/users/RamanBut-Husaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamanBut-Husaim/subscriptions","organizations_url":"https://api.github.com/users/RamanBut-Husaim/orgs","repos_url":"https://api.github.com/users/RamanBut-Husaim/repos","events_url":"https://api.github.com/users/RamanBut-Husaim/events{/privacy}","received_events_url":"https://api.github.com/users/RamanBut-Husaim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler","description":"MPP.Lab03","fork":false,"url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler","forks_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/forks","keys_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/teams","hooks_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/hooks","issue_events_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/events{/number}","events_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/events","assignees_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/assignees{/user}","branches_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/branches{/branch}","tags_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/tags","blobs_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/git/refs{/sha}","trees_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/statuses/{sha}","languages_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/languages","stargazers_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/stargazers","contributors_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/contributors","subscribers_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/subscribers","subscription_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/subscription","commits_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/commits{/sha}","git_commits_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/git/commits{/sha}","comments_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/comments{/number}","issue_comment_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/comments{/number}","contents_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/contents/{+path}","compare_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/merges","archive_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/downloads","issues_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues{/number}","pulls_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls{/number}","milestones_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/milestones{/number}","notifications_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/labels{/name}","releases_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/releases{/id}","deployments_url":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/deployments","created_at":"2016-09-06T19:17:03Z","updated_at":"2016-09-06T19:17:03Z","pushed_at":"2016-11-09T20:07:12Z","git_url":"git://github.com/RamanBut-Husaim/MPP.WebCrawler.git","ssh_url":"git@github.com:RamanBut-Husaim/MPP.WebCrawler.git","clone_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler.git","svn_url":"https://github.com/RamanBut-Husaim/MPP.WebCrawler","homepage":null,"size":125,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":3,"forks":18,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7"},"html":{"href":"https://github.com/RamanBut-Husaim/MPP.WebCrawler/pull/7"},"issue":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/7"},"comments":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/RamanBut-Husaim/MPP.WebCrawler/statuses/1414d3c3995a2691f4f0dbe2354127d9209336ab"}}}}
{"actor":{"display_login":"RamanBut-Husaim"}}