{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/comments/89178488","pull_request_review_id":9726891,"id":89178488,"diff_hunk":"@@ -0,0 +1,46 @@\n+﻿// Copyright (c) .NET Foundation. All rights reserved.\n+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n+\n+using System.Collections;\n+using System.Collections.Generic;\n+\n+namespace Microsoft.AspNetCore.Rewrite.Internal\n+{\n+    public class BackReferenceCollection\n+    {\n+        private List<string> backReferences;\n+\n+        public BackReferenceCollection()\n+        {\n+            backReferences = new List<string>();\n+        }\n+\n+        public string GetBackReferenceAtIndex(int index)\n+        {\n+            return backReferences[index];\n+        }\n+\n+        public void AddBackReferences(MatchResults matchResults)\n+        {\n+            var currentBackReference = matchResults.BackReference;\n+            if (currentBackReference != null )\n+            {\n+                for ( var i = 0; i < currentBackReference.Count; i++)\n+                {\n+                    backReferences.Add(currentBackReference[i].Value);\n+                }\n+            }\n+            else if (!string.IsNullOrEmpty(matchResults.ExactBackReference))\n+            {\n+                backReferences.Add(matchResults.ExactBackReference);\n+            }\n+        }\n+\n+        public void ReplaceAllBackreferences(MatchResults matchResults)\n+        {\n+            backReferences.Clear();\n+            AddBackReferences(matchResults);\n+        }\n+","path":"src/Microsoft.AspNetCore.Rewrite/Internal/BackReferenceCollection.cs","position":44,"original_position":44,"commit_id":"cfca6139a872a78d856a61d2cd72175d25a6a667","original_commit_id":"cfca6139a872a78d856a61d2cd72175d25a6a667","user":{"login":"BrennanConroy","id":7574801,"avatar_url":"https://avatars.githubusercontent.com/u/7574801?v=3","gravatar_id":"","url":"https://api.github.com/users/BrennanConroy","html_url":"https://github.com/BrennanConroy","followers_url":"https://api.github.com/users/BrennanConroy/followers","following_url":"https://api.github.com/users/BrennanConroy/following{/other_user}","gists_url":"https://api.github.com/users/BrennanConroy/gists{/gist_id}","starred_url":"https://api.github.com/users/BrennanConroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrennanConroy/subscriptions","organizations_url":"https://api.github.com/users/BrennanConroy/orgs","repos_url":"https://api.github.com/users/BrennanConroy/repos","events_url":"https://api.github.com/users/BrennanConroy/events{/privacy}","received_events_url":"https://api.github.com/users/BrennanConroy/received_events","type":"User","site_admin":false},"body":"nit: space","created_at":"2016-11-22T18:22:17Z","updated_at":"2016-11-22T18:22:17Z","html_url":"https://github.com/aspnet/BasicMiddleware/pull/176#discussion_r89178488","pull_request_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176","_links":{"self":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/comments/89178488"},"html":{"href":"https://github.com/aspnet/BasicMiddleware/pull/176#discussion_r89178488"},"pull_request":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176","id":93248233,"html_url":"https://github.com/aspnet/BasicMiddleware/pull/176","diff_url":"https://github.com/aspnet/BasicMiddleware/pull/176.diff","patch_url":"https://github.com/aspnet/BasicMiddleware/pull/176.patch","issue_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/176","number":176,"state":"open","locked":false,"title":"Support track all captures","user":{"login":"mikaelm12","id":4809660,"avatar_url":"https://avatars.githubusercontent.com/u/4809660?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelm12","html_url":"https://github.com/mikaelm12","followers_url":"https://api.github.com/users/mikaelm12/followers","following_url":"https://api.github.com/users/mikaelm12/following{/other_user}","gists_url":"https://api.github.com/users/mikaelm12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelm12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelm12/subscriptions","organizations_url":"https://api.github.com/users/mikaelm12/orgs","repos_url":"https://api.github.com/users/mikaelm12/repos","events_url":"https://api.github.com/users/mikaelm12/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelm12/received_events","type":"User","site_admin":false},"body":"Working on https://github.com/aspnet/BasicMiddleware/issues/141\r\n@Tratcher @BrennanConroy @natemcmaster \r\n\r\nSupport for trackAllCaptures was a little more involved because the GroupCollection type can't be added to. I wrote the BackReferenceCollection type to hold all the captures.","created_at":"2016-11-10T22:57:56Z","updated_at":"2016-11-22T18:22:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61f9e73f1e157da7ad2b3cd8305189c346891663","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176/commits","review_comments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176/comments","review_comment_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/176/comments","statuses_url":"https://api.github.com/repos/aspnet/BasicMiddleware/statuses/cfca6139a872a78d856a61d2cd72175d25a6a667","head":{"label":"aspnet:mikaelm12/SuppotTrackAllCaptures","ref":"mikaelm12/SuppotTrackAllCaptures","sha":"cfca6139a872a78d856a61d2cd72175d25a6a667","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38068840,"name":"BasicMiddleware","full_name":"aspnet/BasicMiddleware","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/BasicMiddleware","description":"Basic middleware components for ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/BasicMiddleware","forks_url":"https://api.github.com/repos/aspnet/BasicMiddleware/forks","keys_url":"https://api.github.com/repos/aspnet/BasicMiddleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/BasicMiddleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/BasicMiddleware/teams","hooks_url":"https://api.github.com/repos/aspnet/BasicMiddleware/hooks","issue_events_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/BasicMiddleware/events","assignees_url":"https://api.github.com/repos/aspnet/BasicMiddleware/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/BasicMiddleware/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/BasicMiddleware/tags","blobs_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/BasicMiddleware/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/BasicMiddleware/languages","stargazers_url":"https://api.github.com/repos/aspnet/BasicMiddleware/stargazers","contributors_url":"https://api.github.com/repos/aspnet/BasicMiddleware/contributors","subscribers_url":"https://api.github.com/repos/aspnet/BasicMiddleware/subscribers","subscription_url":"https://api.github.com/repos/aspnet/BasicMiddleware/subscription","commits_url":"https://api.github.com/repos/aspnet/BasicMiddleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/BasicMiddleware/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/BasicMiddleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/BasicMiddleware/merges","archive_url":"https://api.github.com/repos/aspnet/BasicMiddleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/BasicMiddleware/downloads","issues_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/BasicMiddleware/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/BasicMiddleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/BasicMiddleware/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/BasicMiddleware/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/deployments","created_at":"2015-06-25T19:15:27Z","updated_at":"2016-10-24T18:34:36Z","pushed_at":"2016-11-18T20:10:37Z","git_url":"git://github.com/aspnet/BasicMiddleware.git","ssh_url":"git@github.com:aspnet/BasicMiddleware.git","clone_url":"https://github.com/aspnet/BasicMiddleware.git","svn_url":"https://github.com/aspnet/BasicMiddleware","homepage":"","size":755,"stargazers_count":48,"watchers_count":48,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":48,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"ea0042c685ba2228d0d4b85df41fa45a0b360f00","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38068840,"name":"BasicMiddleware","full_name":"aspnet/BasicMiddleware","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/BasicMiddleware","description":"Basic middleware components for ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/BasicMiddleware","forks_url":"https://api.github.com/repos/aspnet/BasicMiddleware/forks","keys_url":"https://api.github.com/repos/aspnet/BasicMiddleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/BasicMiddleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/BasicMiddleware/teams","hooks_url":"https://api.github.com/repos/aspnet/BasicMiddleware/hooks","issue_events_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/BasicMiddleware/events","assignees_url":"https://api.github.com/repos/aspnet/BasicMiddleware/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/BasicMiddleware/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/BasicMiddleware/tags","blobs_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/BasicMiddleware/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/BasicMiddleware/languages","stargazers_url":"https://api.github.com/repos/aspnet/BasicMiddleware/stargazers","contributors_url":"https://api.github.com/repos/aspnet/BasicMiddleware/contributors","subscribers_url":"https://api.github.com/repos/aspnet/BasicMiddleware/subscribers","subscription_url":"https://api.github.com/repos/aspnet/BasicMiddleware/subscription","commits_url":"https://api.github.com/repos/aspnet/BasicMiddleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/BasicMiddleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/BasicMiddleware/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/BasicMiddleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/BasicMiddleware/merges","archive_url":"https://api.github.com/repos/aspnet/BasicMiddleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/BasicMiddleware/downloads","issues_url":"https://api.github.com/repos/aspnet/BasicMiddleware/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/BasicMiddleware/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/BasicMiddleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/BasicMiddleware/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/BasicMiddleware/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/BasicMiddleware/deployments","created_at":"2015-06-25T19:15:27Z","updated_at":"2016-10-24T18:34:36Z","pushed_at":"2016-11-18T20:10:37Z","git_url":"git://github.com/aspnet/BasicMiddleware.git","ssh_url":"git@github.com:aspnet/BasicMiddleware.git","clone_url":"https://github.com/aspnet/BasicMiddleware.git","svn_url":"https://github.com/aspnet/BasicMiddleware","homepage":"","size":755,"stargazers_count":48,"watchers_count":48,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":48,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176"},"html":{"href":"https://github.com/aspnet/BasicMiddleware/pull/176"},"issue":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/176"},"comments":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/BasicMiddleware/statuses/cfca6139a872a78d856a61d2cd72175d25a6a667"}}}}
{"actor":{"display_login":"BrennanConroy"}}