{"action":"created","comment":{"url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/comments/23137283","id":23137283,"diff_hunk":"@@ -553,6 +561,46 @@ private static Task<Stream> GetStreamFromUriAsync(Uri uri)\n             }\n             throw new NotSupportedException(\"Only ms-appx:, ms-appdata:, ms-resource: and file: URIs are supported\");\n         }\n+\n+        private static async Task<Stream> GetNetworkStreamAsync(Uri uri)\n+        {\n+            //generating temp file name by converting the uri to base64\n+            var tempId = Convert.ToBase64String(Encoding.UTF8.GetBytes(uri.AbsoluteUri));\n+\n+            var folder = ApplicationData.Current.TemporaryFolder;\n+\n+            try\n+            {\n+                var tempFile = await folder.GetFileAsync(tempId);\n+\n+                //return the cache image\n+                return await tempFile.OpenStreamForReadAsync();\n+            }\n+            catch{}","path":"XamlAnimatedGif.Shared/Animator.cs","position":48,"original_position":48,"commit_id":"487d07e000ded5075f491ae0ed8f10c8810b5048","original_commit_id":"487d07e000ded5075f491ae0ed8f10c8810b5048","user":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"body":"Catch `FileNotFoundException` here; any other exception is unexpected and shouldn't be caught.","created_at":"2015-01-18T21:42:27Z","updated_at":"2015-01-18T21:42:27Z","html_url":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5#discussion_r23137283","pull_request_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/comments/23137283"},"html":{"href":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5#discussion_r23137283"},"pull_request":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5","id":27576189,"html_url":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5","diff_url":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5.diff","patch_url":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5.patch","issue_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/5","number":5,"state":"open","locked":false,"title":"Add http source image support for WinRT with caching","user":{"login":"zumicts","id":5519816,"avatar_url":"https://avatars.githubusercontent.com/u/5519816?v=3","gravatar_id":"","url":"https://api.github.com/users/zumicts","html_url":"https://github.com/zumicts","followers_url":"https://api.github.com/users/zumicts/followers","following_url":"https://api.github.com/users/zumicts/following{/other_user}","gists_url":"https://api.github.com/users/zumicts/gists{/gist_id}","starred_url":"https://api.github.com/users/zumicts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumicts/subscriptions","organizations_url":"https://api.github.com/users/zumicts/orgs","repos_url":"https://api.github.com/users/zumicts/repos","events_url":"https://api.github.com/users/zumicts/events{/privacy}","received_events_url":"https://api.github.com/users/zumicts/received_events","type":"User","site_admin":false},"body":"Saves downloaded gifs to temporary storage and only downloads when is not already cache.","created_at":"2015-01-18T20:09:47Z","updated_at":"2015-01-18T21:42:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8b94047c654479c07076603e7fb2c6f04d1a3dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5/commits","review_comments_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5/comments","review_comment_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/comments/{number}","comments_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/5/comments","statuses_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/statuses/487d07e000ded5075f491ae0ed8f10c8810b5048","head":{"label":"zumicts:master","ref":"master","sha":"487d07e000ded5075f491ae0ed8f10c8810b5048","user":{"login":"zumicts","id":5519816,"avatar_url":"https://avatars.githubusercontent.com/u/5519816?v=3","gravatar_id":"","url":"https://api.github.com/users/zumicts","html_url":"https://github.com/zumicts","followers_url":"https://api.github.com/users/zumicts/followers","following_url":"https://api.github.com/users/zumicts/following{/other_user}","gists_url":"https://api.github.com/users/zumicts/gists{/gist_id}","starred_url":"https://api.github.com/users/zumicts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumicts/subscriptions","organizations_url":"https://api.github.com/users/zumicts/orgs","repos_url":"https://api.github.com/users/zumicts/repos","events_url":"https://api.github.com/users/zumicts/events{/privacy}","received_events_url":"https://api.github.com/users/zumicts/received_events","type":"User","site_admin":false},"repo":{"id":29433477,"name":"XamlAnimatedGif","full_name":"zumicts/XamlAnimatedGif","owner":{"login":"zumicts","id":5519816,"avatar_url":"https://avatars.githubusercontent.com/u/5519816?v=3","gravatar_id":"","url":"https://api.github.com/users/zumicts","html_url":"https://github.com/zumicts","followers_url":"https://api.github.com/users/zumicts/followers","following_url":"https://api.github.com/users/zumicts/following{/other_user}","gists_url":"https://api.github.com/users/zumicts/gists{/gist_id}","starred_url":"https://api.github.com/users/zumicts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumicts/subscriptions","organizations_url":"https://api.github.com/users/zumicts/orgs","repos_url":"https://api.github.com/users/zumicts/repos","events_url":"https://api.github.com/users/zumicts/events{/privacy}","received_events_url":"https://api.github.com/users/zumicts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zumicts/XamlAnimatedGif","description":"A simple library to display animated GIF images in XAML apps (WPF, WinRT, Windows Phone)","fork":true,"url":"https://api.github.com/repos/zumicts/XamlAnimatedGif","forks_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/forks","keys_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/teams","hooks_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/hooks","issue_events_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/issues/events{/number}","events_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/events","assignees_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/assignees{/user}","branches_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/branches{/branch}","tags_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/tags","blobs_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/git/refs{/sha}","trees_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/statuses/{sha}","languages_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/languages","stargazers_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/stargazers","contributors_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/contributors","subscribers_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/subscribers","subscription_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/subscription","commits_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/commits{/sha}","git_commits_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/git/commits{/sha}","comments_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/comments{/number}","issue_comment_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/issues/comments/{number}","contents_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/contents/{+path}","compare_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/merges","archive_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/downloads","issues_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/issues{/number}","pulls_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/pulls{/number}","milestones_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/milestones{/number}","notifications_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/labels{/name}","releases_url":"https://api.github.com/repos/zumicts/XamlAnimatedGif/releases{/id}","created_at":"2015-01-18T17:10:05Z","updated_at":"2015-01-18T20:08:20Z","pushed_at":"2015-01-18T20:08:20Z","git_url":"git://github.com/zumicts/XamlAnimatedGif.git","ssh_url":"git@github.com:zumicts/XamlAnimatedGif.git","clone_url":"https://github.com/zumicts/XamlAnimatedGif.git","svn_url":"https://github.com/zumicts/XamlAnimatedGif","homepage":"","size":2181,"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":"thomaslevesque:master","ref":"master","sha":"15cf2a53c37285dc6fdb1a9f5ac147b656147cb4","user":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"repo":{"id":24573183,"name":"XamlAnimatedGif","full_name":"thomaslevesque/XamlAnimatedGif","owner":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thomaslevesque/XamlAnimatedGif","description":"A simple library to display animated GIF images in XAML apps (WPF, WinRT, Windows Phone)","fork":false,"url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif","forks_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/forks","keys_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/teams","hooks_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/hooks","issue_events_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/events{/number}","events_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/events","assignees_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/assignees{/user}","branches_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/branches{/branch}","tags_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/tags","blobs_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/git/refs{/sha}","trees_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/statuses/{sha}","languages_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/languages","stargazers_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/stargazers","contributors_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/contributors","subscribers_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/subscribers","subscription_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/subscription","commits_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/commits{/sha}","git_commits_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/git/commits{/sha}","comments_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/comments{/number}","issue_comment_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/comments/{number}","contents_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/contents/{+path}","compare_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/merges","archive_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/downloads","issues_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues{/number}","pulls_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls{/number}","milestones_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/milestones{/number}","notifications_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/labels{/name}","releases_url":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/releases{/id}","created_at":"2014-09-28T23:18:46Z","updated_at":"2015-01-17T21:28:06Z","pushed_at":"2015-01-17T13:20:09Z","git_url":"git://github.com/thomaslevesque/XamlAnimatedGif.git","ssh_url":"git@github.com:thomaslevesque/XamlAnimatedGif.git","clone_url":"https://github.com/thomaslevesque/XamlAnimatedGif.git","svn_url":"https://github.com/thomaslevesque/XamlAnimatedGif","homepage":"","size":2181,"stargazers_count":13,"watchers_count":13,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5"},"html":{"href":"https://github.com/thomaslevesque/XamlAnimatedGif/pull/5"},"issue":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/5"},"comments":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/thomaslevesque/XamlAnimatedGif/statuses/487d07e000ded5075f491ae0ed8f10c8810b5048"}}}}