{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/1411","repository_url":"https://api.github.com/repos/dotnet/orleans","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/1411/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/1411/events","html_url":"https://github.com/dotnet/orleans/pull/1411","id":132060834,"number":1411,"title":"Added helper methods for programmatic test configurations.","user":{"login":"sergeybykov","id":8248806,"avatar_url":"https://avatars.githubusercontent.com/u/8248806?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeybykov","html_url":"https://github.com/sergeybykov","followers_url":"https://api.github.com/users/sergeybykov/followers","following_url":"https://api.github.com/users/sergeybykov/following{/other_user}","gists_url":"https://api.github.com/users/sergeybykov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeybykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeybykov/subscriptions","organizations_url":"https://api.github.com/users/sergeybykov/orgs","repos_url":"https://api.github.com/users/sergeybykov/repos","events_url":"https://api.github.com/users/sergeybykov/events{/privacy}","received_events_url":"https://api.github.com/users/sergeybykov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/orleans/labels/cla-already-signed","name":"cla-already-signed","color":"009800"},{"url":"https://api.github.com/repos/dotnet/orleans/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-08T06:14:21Z","updated_at":"2016-02-09T19:12:59Z","closed_at":"2016-02-08T19:01:11Z","pull_request":{"url":"https://api.github.com/repos/dotnet/orleans/pulls/1411","html_url":"https://github.com/dotnet/orleans/pull/1411","diff_url":"https://github.com/dotnet/orleans/pull/1411.diff","patch_url":"https://github.com/dotnet/orleans/pull/1411.patch"},"body":"We want to change samples and the Dev/Test Host template to use programmatic config instead of the config files. This adds a couple of static helper methods that simplify otherwise tedious task of programmatic configuration.\r\n\r\nAn usage example is in https://github.com/sergeybykov/orleans/blob/sample/Samples/HelloWorld/HelloWorld/OrleansHostWrapper.cs#L135 and https://github.com/sergeybykov/orleans/blob/sample/Samples/HelloWorld/HelloWorld/Program.cs#L29.\r\n\r\nNote that we can't update samples until we publish NuGets with this feature and an updated VSIX."},"comment":{"url":"https://api.github.com/repos/dotnet/orleans/issues/comments/182012374","html_url":"https://github.com/dotnet/orleans/pull/1411#issuecomment-182012374","issue_url":"https://api.github.com/repos/dotnet/orleans/issues/1411","id":182012374,"user":{"login":"jason-bragg","id":10675494,"avatar_url":"https://avatars.githubusercontent.com/u/10675494?v=3","gravatar_id":"","url":"https://api.github.com/users/jason-bragg","html_url":"https://github.com/jason-bragg","followers_url":"https://api.github.com/users/jason-bragg/followers","following_url":"https://api.github.com/users/jason-bragg/following{/other_user}","gists_url":"https://api.github.com/users/jason-bragg/gists{/gist_id}","starred_url":"https://api.github.com/users/jason-bragg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason-bragg/subscriptions","organizations_url":"https://api.github.com/users/jason-bragg/orgs","repos_url":"https://api.github.com/users/jason-bragg/repos","events_url":"https://api.github.com/users/jason-bragg/events{/privacy}","received_events_url":"https://api.github.com/users/jason-bragg/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T19:12:59Z","updated_at":"2016-02-09T19:12:59Z","body":">I don't think splitting such methods between the config classes and test code will help discoverability.\r\n\r\nMy intention is to avoid cluttering the public api with test logic.  If this is for use in production silos, it belongs here.  However, that's not what I concluded from the comments:\r\n\r\n>\"Returns a ClientConfiguration object for connecting to a local silo (for testing).\"\r\n\r\n"}}