{"action":"created","comment":{"url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/comments/57170943","id":57170943,"diff_hunk":"@@ -0,0 +1,17 @@\n+﻿namespace Snippets3.DataBus.CleanupStrategy\n+{\n+    using System;\n+    using System.IO;\n+    using Snippets3.DataBus.DataBusProperty;\n+\n+    public class Usage\n+    {\n+        #region FileLocationForDatabusFiles\n+        public void Handle(MessageWithLargePayload message)\n+        {\n+            string filename = Path.Combine(@\"c:\\databus_files\\\", message.LargeBlob.Key);","path":"Snippets/Snippets_3/DataBus/CleanupStrategy/Usage.cs","position":12,"original_position":12,"commit_id":"3515128acb35eca55a9497cbb70d512314bcd909","original_commit_id":"a57b2e896af6fddb18484684e7eb84bacb82dc07","user":{"login":"dvdstelt","id":1257410,"avatar_url":"https://avatars.githubusercontent.com/u/1257410?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdstelt","html_url":"https://github.com/dvdstelt","followers_url":"https://api.github.com/users/dvdstelt/followers","following_url":"https://api.github.com/users/dvdstelt/following{/other_user}","gists_url":"https://api.github.com/users/dvdstelt/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdstelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdstelt/subscriptions","organizations_url":"https://api.github.com/users/dvdstelt/orgs","repos_url":"https://api.github.com/users/dvdstelt/repos","events_url":"https://api.github.com/users/dvdstelt/events{/privacy}","received_events_url":"https://api.github.com/users/dvdstelt/received_events","type":"User","site_admin":false},"body":"It was a question by a customer how to obtain the file location. I'm not surprised they can't figure it out by themselves, that's why I added it. And the fact that it's in \"handle\" method, is so they understand that it's the receiving side.\r\n\r\nAnd hopefully they understand that removing files in the handler isn't smart, due to the story they just read. But I could add something like \"// Execute cleanup strategy, like scheduling the delete after x-days\"","created_at":"2016-03-23T14:45:05Z","updated_at":"2016-03-23T14:45:05Z","html_url":"https://github.com/Particular/docs.particular.net/pull/1335#discussion_r57170943","pull_request_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335","_links":{"self":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/comments/57170943"},"html":{"href":"https://github.com/Particular/docs.particular.net/pull/1335#discussion_r57170943"},"pull_request":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335"}}},"pull_request":{"url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335","id":63393839,"html_url":"https://github.com/Particular/docs.particular.net/pull/1335","diff_url":"https://github.com/Particular/docs.particular.net/pull/1335.diff","patch_url":"https://github.com/Particular/docs.particular.net/pull/1335.patch","issue_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/1335","number":1335,"state":"open","locked":false,"title":"Databus removing strategy","user":{"login":"dvdstelt","id":1257410,"avatar_url":"https://avatars.githubusercontent.com/u/1257410?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdstelt","html_url":"https://github.com/dvdstelt","followers_url":"https://api.github.com/users/dvdstelt/followers","following_url":"https://api.github.com/users/dvdstelt/following{/other_user}","gists_url":"https://api.github.com/users/dvdstelt/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdstelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdstelt/subscriptions","organizations_url":"https://api.github.com/users/dvdstelt/orgs","repos_url":"https://api.github.com/users/dvdstelt/repos","events_url":"https://api.github.com/users/dvdstelt/events{/privacy}","received_events_url":"https://api.github.com/users/dvdstelt/received_events","type":"User","site_admin":false},"body":"The change contains hints on removing strategy for Database feature.\r\nThis was added after multiple questions in Desk on how/when to remove files that were saved using the Database feature.","created_at":"2016-03-18T15:44:15Z","updated_at":"2016-03-23T14:45:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd3772c6fe4d8c8a1e69bad30446ce61ba8f4cd7","assignee":{"login":"dvdstelt","id":1257410,"avatar_url":"https://avatars.githubusercontent.com/u/1257410?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdstelt","html_url":"https://github.com/dvdstelt","followers_url":"https://api.github.com/users/dvdstelt/followers","following_url":"https://api.github.com/users/dvdstelt/following{/other_user}","gists_url":"https://api.github.com/users/dvdstelt/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdstelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdstelt/subscriptions","organizations_url":"https://api.github.com/users/dvdstelt/orgs","repos_url":"https://api.github.com/users/dvdstelt/repos","events_url":"https://api.github.com/users/dvdstelt/events{/privacy}","received_events_url":"https://api.github.com/users/dvdstelt/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335/commits","review_comments_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335/comments","review_comment_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/1335/comments","statuses_url":"https://api.github.com/repos/Particular/docs.particular.net/statuses/3515128acb35eca55a9497cbb70d512314bcd909","head":{"label":"Particular:database-removing-strategy","ref":"database-removing-strategy","sha":"3515128acb35eca55a9497cbb70d512314bcd909","user":{"login":"Particular","id":5038441,"avatar_url":"https://avatars.githubusercontent.com/u/5038441?v=3","gravatar_id":"","url":"https://api.github.com/users/Particular","html_url":"https://github.com/Particular","followers_url":"https://api.github.com/users/Particular/followers","following_url":"https://api.github.com/users/Particular/following{/other_user}","gists_url":"https://api.github.com/users/Particular/gists{/gist_id}","starred_url":"https://api.github.com/users/Particular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Particular/subscriptions","organizations_url":"https://api.github.com/users/Particular/orgs","repos_url":"https://api.github.com/users/Particular/repos","events_url":"https://api.github.com/users/Particular/events{/privacy}","received_events_url":"https://api.github.com/users/Particular/received_events","type":"Organization","site_admin":false},"repo":{"id":11727301,"name":"docs.particular.net","full_name":"Particular/docs.particular.net","owner":{"login":"Particular","id":5038441,"avatar_url":"https://avatars.githubusercontent.com/u/5038441?v=3","gravatar_id":"","url":"https://api.github.com/users/Particular","html_url":"https://github.com/Particular","followers_url":"https://api.github.com/users/Particular/followers","following_url":"https://api.github.com/users/Particular/following{/other_user}","gists_url":"https://api.github.com/users/Particular/gists{/gist_id}","starred_url":"https://api.github.com/users/Particular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Particular/subscriptions","organizations_url":"https://api.github.com/users/Particular/orgs","repos_url":"https://api.github.com/users/Particular/repos","events_url":"https://api.github.com/users/Particular/events{/privacy}","received_events_url":"https://api.github.com/users/Particular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Particular/docs.particular.net","description":"Contains all the content for the Particular documentation site","fork":false,"url":"https://api.github.com/repos/Particular/docs.particular.net","forks_url":"https://api.github.com/repos/Particular/docs.particular.net/forks","keys_url":"https://api.github.com/repos/Particular/docs.particular.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Particular/docs.particular.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Particular/docs.particular.net/teams","hooks_url":"https://api.github.com/repos/Particular/docs.particular.net/hooks","issue_events_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/events{/number}","events_url":"https://api.github.com/repos/Particular/docs.particular.net/events","assignees_url":"https://api.github.com/repos/Particular/docs.particular.net/assignees{/user}","branches_url":"https://api.github.com/repos/Particular/docs.particular.net/branches{/branch}","tags_url":"https://api.github.com/repos/Particular/docs.particular.net/tags","blobs_url":"https://api.github.com/repos/Particular/docs.particular.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Particular/docs.particular.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Particular/docs.particular.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/Particular/docs.particular.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Particular/docs.particular.net/statuses/{sha}","languages_url":"https://api.github.com/repos/Particular/docs.particular.net/languages","stargazers_url":"https://api.github.com/repos/Particular/docs.particular.net/stargazers","contributors_url":"https://api.github.com/repos/Particular/docs.particular.net/contributors","subscribers_url":"https://api.github.com/repos/Particular/docs.particular.net/subscribers","subscription_url":"https://api.github.com/repos/Particular/docs.particular.net/subscription","commits_url":"https://api.github.com/repos/Particular/docs.particular.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/Particular/docs.particular.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/Particular/docs.particular.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/Particular/docs.particular.net/contents/{+path}","compare_url":"https://api.github.com/repos/Particular/docs.particular.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Particular/docs.particular.net/merges","archive_url":"https://api.github.com/repos/Particular/docs.particular.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Particular/docs.particular.net/downloads","issues_url":"https://api.github.com/repos/Particular/docs.particular.net/issues{/number}","pulls_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls{/number}","milestones_url":"https://api.github.com/repos/Particular/docs.particular.net/milestones{/number}","notifications_url":"https://api.github.com/repos/Particular/docs.particular.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Particular/docs.particular.net/labels{/name}","releases_url":"https://api.github.com/repos/Particular/docs.particular.net/releases{/id}","deployments_url":"https://api.github.com/repos/Particular/docs.particular.net/deployments","created_at":"2013-07-28T23:18:15Z","updated_at":"2016-02-19T18:24:25Z","pushed_at":"2016-03-23T12:55:05Z","git_url":"git://github.com/Particular/docs.particular.net.git","ssh_url":"git@github.com:Particular/docs.particular.net.git","clone_url":"https://github.com/Particular/docs.particular.net.git","svn_url":"https://github.com/Particular/docs.particular.net","homepage":"http://docs.particular.net","size":46515,"stargazers_count":20,"watchers_count":20,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":155,"forks":108,"open_issues":155,"watchers":20,"default_branch":"master"}},"base":{"label":"Particular:master","ref":"master","sha":"43726c3da4c407994e2d3a034ffbf2b946e9dc0b","user":{"login":"Particular","id":5038441,"avatar_url":"https://avatars.githubusercontent.com/u/5038441?v=3","gravatar_id":"","url":"https://api.github.com/users/Particular","html_url":"https://github.com/Particular","followers_url":"https://api.github.com/users/Particular/followers","following_url":"https://api.github.com/users/Particular/following{/other_user}","gists_url":"https://api.github.com/users/Particular/gists{/gist_id}","starred_url":"https://api.github.com/users/Particular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Particular/subscriptions","organizations_url":"https://api.github.com/users/Particular/orgs","repos_url":"https://api.github.com/users/Particular/repos","events_url":"https://api.github.com/users/Particular/events{/privacy}","received_events_url":"https://api.github.com/users/Particular/received_events","type":"Organization","site_admin":false},"repo":{"id":11727301,"name":"docs.particular.net","full_name":"Particular/docs.particular.net","owner":{"login":"Particular","id":5038441,"avatar_url":"https://avatars.githubusercontent.com/u/5038441?v=3","gravatar_id":"","url":"https://api.github.com/users/Particular","html_url":"https://github.com/Particular","followers_url":"https://api.github.com/users/Particular/followers","following_url":"https://api.github.com/users/Particular/following{/other_user}","gists_url":"https://api.github.com/users/Particular/gists{/gist_id}","starred_url":"https://api.github.com/users/Particular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Particular/subscriptions","organizations_url":"https://api.github.com/users/Particular/orgs","repos_url":"https://api.github.com/users/Particular/repos","events_url":"https://api.github.com/users/Particular/events{/privacy}","received_events_url":"https://api.github.com/users/Particular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Particular/docs.particular.net","description":"Contains all the content for the Particular documentation site","fork":false,"url":"https://api.github.com/repos/Particular/docs.particular.net","forks_url":"https://api.github.com/repos/Particular/docs.particular.net/forks","keys_url":"https://api.github.com/repos/Particular/docs.particular.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Particular/docs.particular.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Particular/docs.particular.net/teams","hooks_url":"https://api.github.com/repos/Particular/docs.particular.net/hooks","issue_events_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/events{/number}","events_url":"https://api.github.com/repos/Particular/docs.particular.net/events","assignees_url":"https://api.github.com/repos/Particular/docs.particular.net/assignees{/user}","branches_url":"https://api.github.com/repos/Particular/docs.particular.net/branches{/branch}","tags_url":"https://api.github.com/repos/Particular/docs.particular.net/tags","blobs_url":"https://api.github.com/repos/Particular/docs.particular.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Particular/docs.particular.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Particular/docs.particular.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/Particular/docs.particular.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Particular/docs.particular.net/statuses/{sha}","languages_url":"https://api.github.com/repos/Particular/docs.particular.net/languages","stargazers_url":"https://api.github.com/repos/Particular/docs.particular.net/stargazers","contributors_url":"https://api.github.com/repos/Particular/docs.particular.net/contributors","subscribers_url":"https://api.github.com/repos/Particular/docs.particular.net/subscribers","subscription_url":"https://api.github.com/repos/Particular/docs.particular.net/subscription","commits_url":"https://api.github.com/repos/Particular/docs.particular.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/Particular/docs.particular.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/Particular/docs.particular.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/Particular/docs.particular.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/Particular/docs.particular.net/contents/{+path}","compare_url":"https://api.github.com/repos/Particular/docs.particular.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Particular/docs.particular.net/merges","archive_url":"https://api.github.com/repos/Particular/docs.particular.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Particular/docs.particular.net/downloads","issues_url":"https://api.github.com/repos/Particular/docs.particular.net/issues{/number}","pulls_url":"https://api.github.com/repos/Particular/docs.particular.net/pulls{/number}","milestones_url":"https://api.github.com/repos/Particular/docs.particular.net/milestones{/number}","notifications_url":"https://api.github.com/repos/Particular/docs.particular.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Particular/docs.particular.net/labels{/name}","releases_url":"https://api.github.com/repos/Particular/docs.particular.net/releases{/id}","deployments_url":"https://api.github.com/repos/Particular/docs.particular.net/deployments","created_at":"2013-07-28T23:18:15Z","updated_at":"2016-02-19T18:24:25Z","pushed_at":"2016-03-23T12:55:05Z","git_url":"git://github.com/Particular/docs.particular.net.git","ssh_url":"git@github.com:Particular/docs.particular.net.git","clone_url":"https://github.com/Particular/docs.particular.net.git","svn_url":"https://github.com/Particular/docs.particular.net","homepage":"http://docs.particular.net","size":46515,"stargazers_count":20,"watchers_count":20,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":155,"forks":108,"open_issues":155,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335"},"html":{"href":"https://github.com/Particular/docs.particular.net/pull/1335"},"issue":{"href":"https://api.github.com/repos/Particular/docs.particular.net/issues/1335"},"comments":{"href":"https://api.github.com/repos/Particular/docs.particular.net/issues/1335/comments"},"review_comments":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335/comments"},"review_comment":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Particular/docs.particular.net/pulls/1335/commits"},"statuses":{"href":"https://api.github.com/repos/Particular/docs.particular.net/statuses/3515128acb35eca55a9497cbb70d512314bcd909"}}}}