{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/29998921","id":29998921,"diff_hunk":"@@ -0,0 +1,144 @@\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;\n+using System.Linq;\n+using Microsoft.AspNet.Hosting;\n+using Microsoft.AspNet.Mvc.TagHelpers.Internal;\n+using Microsoft.AspNet.Razor.Runtime.TagHelpers;\n+using Microsoft.Framework.Caching.Memory;\n+using Microsoft.Framework.Logging;\n+using Microsoft.Framework.WebEncoders;\n+\n+namespace Microsoft.AspNet.Mvc.TagHelpers\n+{\n+    /// <summary>\n+    /// <see cref=\"ITagHelper\"/> implementation targeting &lt;img&gt; elements that supports file versioning.\n+    /// </summary>\n+    /// <remarks>\n+    /// The tag helper won't process for cases with just the 'src' attribute.\n+    /// </remarks>\n+    [TargetElement(\"img\", Attributes = FileVersionAttributeName)]\n+    public class ImageTagHelper : TagHelper\n+    {\n+        private static readonly string Namespace = typeof(ImageTagHelper).Namespace;\n+\n+        private const string FileVersionAttributeName = \"asp-file-version\";\n+        private const string SrcAttributeName = \"src\";\n+\n+        private FileVersionProvider _fileVersionProvider;\n+        \n+        /// <summary>\n+        /// Src of the image.\n+        /// </summary>\n+        /// <remarks>\n+        /// Passed through to the generated HTML in all cases.\n+        /// </remarks>\n+        [HtmlAttributeName(SrcAttributeName)]\n+        public string Src { get; set; }\n+\n+        /// <summary>\n+        /// Value indicating if file version should be appended to the src urls.\n+        /// </summary>\n+        /// <remarks>\n+        /// If <c>true</c> then a query string \"v\" with the encoded content of the file is added.\n+        /// </remarks>\n+        [HtmlAttributeName(FileVersionAttributeName)]\n+        public bool? FileVersion { get; set; }\n+\n+        [Activate]\n+        [HtmlAttributeNotBound]\n+        protected internal ILogger<ImageTagHelper> Logger { get; set; }","path":"src/Microsoft.AspNet.Mvc.TagHelpers/ImageTagHelper.cs","position":51,"original_position":51,"commit_id":"1b6553b1d0785624054bd303ac551b9fa49820ce","original_commit_id":"1b6553b1d0785624054bd303ac551b9fa49820ce","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"body":"unused","created_at":"2015-05-10T05:26:46Z","updated_at":"2015-05-10T05:26:46Z","html_url":"https://github.com/aspnet/Mvc/pull/2516#discussion_r29998921","pull_request_url":"https://api.github.com/repos/aspnet/Mvc/pulls/2516","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/29998921"},"html":{"href":"https://github.com/aspnet/Mvc/pull/2516#discussion_r29998921"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/2516"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/2516","id":34943981,"html_url":"https://github.com/aspnet/Mvc/pull/2516","diff_url":"https://github.com/aspnet/Mvc/pull/2516.diff","patch_url":"https://github.com/aspnet/Mvc/pull/2516.patch","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/2516","number":2516,"state":"open","locked":false,"title":"ImageTagHelper","user":{"login":"dpaquette","id":2531875,"avatar_url":"https://avatars.githubusercontent.com/u/2531875?v=3","gravatar_id":"","url":"https://api.github.com/users/dpaquette","html_url":"https://github.com/dpaquette","followers_url":"https://api.github.com/users/dpaquette/followers","following_url":"https://api.github.com/users/dpaquette/following{/other_user}","gists_url":"https://api.github.com/users/dpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaquette/subscriptions","organizations_url":"https://api.github.com/users/dpaquette/orgs","repos_url":"https://api.github.com/users/dpaquette/repos","events_url":"https://api.github.com/users/dpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/dpaquette/received_events","type":"User","site_admin":false},"body":"An ImageTagHelper that supports globbed src paths and cache busting file\r\nversion hash\r\n[Resolves #2249]","created_at":"2015-05-07T18:27:12Z","updated_at":"2015-05-10T05:26:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91c6561d393b6ec5f7df5ea9cdd5b29503dbb227","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Mvc/pulls/2516/commits","review_comments_url":"https://api.github.com/repos/aspnet/Mvc/pulls/2516/comments","review_comment_url":"https://api.github.com/repos/aspnet/Mvc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/2516/comments","statuses_url":"https://api.github.com/repos/aspnet/Mvc/statuses/1b6553b1d0785624054bd303ac551b9fa49820ce","head":{"label":"dpaquette:dev","ref":"dev","sha":"1b6553b1d0785624054bd303ac551b9fa49820ce","user":{"login":"dpaquette","id":2531875,"avatar_url":"https://avatars.githubusercontent.com/u/2531875?v=3","gravatar_id":"","url":"https://api.github.com/users/dpaquette","html_url":"https://github.com/dpaquette","followers_url":"https://api.github.com/users/dpaquette/followers","following_url":"https://api.github.com/users/dpaquette/following{/other_user}","gists_url":"https://api.github.com/users/dpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaquette/subscriptions","organizations_url":"https://api.github.com/users/dpaquette/orgs","repos_url":"https://api.github.com/users/dpaquette/repos","events_url":"https://api.github.com/users/dpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/dpaquette/received_events","type":"User","site_admin":false},"repo":{"id":35172776,"name":"Mvc","full_name":"dpaquette/Mvc","owner":{"login":"dpaquette","id":2531875,"avatar_url":"https://avatars.githubusercontent.com/u/2531875?v=3","gravatar_id":"","url":"https://api.github.com/users/dpaquette","html_url":"https://github.com/dpaquette","followers_url":"https://api.github.com/users/dpaquette/followers","following_url":"https://api.github.com/users/dpaquette/following{/other_user}","gists_url":"https://api.github.com/users/dpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaquette/subscriptions","organizations_url":"https://api.github.com/users/dpaquette/orgs","repos_url":"https://api.github.com/users/dpaquette/repos","events_url":"https://api.github.com/users/dpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/dpaquette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dpaquette/Mvc","description":"Model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor.","fork":true,"url":"https://api.github.com/repos/dpaquette/Mvc","forks_url":"https://api.github.com/repos/dpaquette/Mvc/forks","keys_url":"https://api.github.com/repos/dpaquette/Mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dpaquette/Mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dpaquette/Mvc/teams","hooks_url":"https://api.github.com/repos/dpaquette/Mvc/hooks","issue_events_url":"https://api.github.com/repos/dpaquette/Mvc/issues/events{/number}","events_url":"https://api.github.com/repos/dpaquette/Mvc/events","assignees_url":"https://api.github.com/repos/dpaquette/Mvc/assignees{/user}","branches_url":"https://api.github.com/repos/dpaquette/Mvc/branches{/branch}","tags_url":"https://api.github.com/repos/dpaquette/Mvc/tags","blobs_url":"https://api.github.com/repos/dpaquette/Mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dpaquette/Mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dpaquette/Mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/dpaquette/Mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dpaquette/Mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/dpaquette/Mvc/languages","stargazers_url":"https://api.github.com/repos/dpaquette/Mvc/stargazers","contributors_url":"https://api.github.com/repos/dpaquette/Mvc/contributors","subscribers_url":"https://api.github.com/repos/dpaquette/Mvc/subscribers","subscription_url":"https://api.github.com/repos/dpaquette/Mvc/subscription","commits_url":"https://api.github.com/repos/dpaquette/Mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/dpaquette/Mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/dpaquette/Mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/dpaquette/Mvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/dpaquette/Mvc/contents/{+path}","compare_url":"https://api.github.com/repos/dpaquette/Mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dpaquette/Mvc/merges","archive_url":"https://api.github.com/repos/dpaquette/Mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dpaquette/Mvc/downloads","issues_url":"https://api.github.com/repos/dpaquette/Mvc/issues{/number}","pulls_url":"https://api.github.com/repos/dpaquette/Mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/dpaquette/Mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/dpaquette/Mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dpaquette/Mvc/labels{/name}","releases_url":"https://api.github.com/repos/dpaquette/Mvc/releases{/id}","created_at":"2015-05-06T17:22:16Z","updated_at":"2015-05-08T14:22:32Z","pushed_at":"2015-05-09T01:08:48Z","git_url":"git://github.com/dpaquette/Mvc.git","ssh_url":"git@github.com:dpaquette/Mvc.git","clone_url":"https://github.com/dpaquette/Mvc.git","svn_url":"https://github.com/dpaquette/Mvc","homepage":"","size":12108,"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":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"bd03142daba3854ac976906588bcaa1dc98accd0","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":15126429,"name":"Mvc","full_name":"aspnet/Mvc","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/Mvc","description":"Model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor.","fork":false,"url":"https://api.github.com/repos/aspnet/Mvc","forks_url":"https://api.github.com/repos/aspnet/Mvc/forks","keys_url":"https://api.github.com/repos/aspnet/Mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Mvc/teams","hooks_url":"https://api.github.com/repos/aspnet/Mvc/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Mvc/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Mvc/events","assignees_url":"https://api.github.com/repos/aspnet/Mvc/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Mvc/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Mvc/tags","blobs_url":"https://api.github.com/repos/aspnet/Mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Mvc/languages","stargazers_url":"https://api.github.com/repos/aspnet/Mvc/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Mvc/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Mvc/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Mvc/subscription","commits_url":"https://api.github.com/repos/aspnet/Mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Mvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Mvc/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Mvc/merges","archive_url":"https://api.github.com/repos/aspnet/Mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Mvc/downloads","issues_url":"https://api.github.com/repos/aspnet/Mvc/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Mvc/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Mvc/releases{/id}","created_at":"2013-12-12T03:54:00Z","updated_at":"2015-05-10T01:54:08Z","pushed_at":"2015-05-10T02:31:00Z","git_url":"git://github.com/aspnet/Mvc.git","ssh_url":"git@github.com:aspnet/Mvc.git","clone_url":"https://github.com/aspnet/Mvc.git","svn_url":"https://github.com/aspnet/Mvc","homepage":"","size":123225,"stargazers_count":1699,"watchers_count":1699,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":564,"mirror_url":null,"open_issues_count":224,"forks":564,"open_issues":224,"watchers":1699,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/2516"},"html":{"href":"https://github.com/aspnet/Mvc/pull/2516"},"issue":{"href":"https://api.github.com/repos/aspnet/Mvc/issues/2516"},"comments":{"href":"https://api.github.com/repos/aspnet/Mvc/issues/2516/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/2516/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/2516/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Mvc/statuses/1b6553b1d0785624054bd303ac551b9fa49820ce"}}}}