{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/741","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/741/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/741/events","html_url":"https://github.com/dotnet/orleans/issues/741","id":103365908,"number":741,"title":"Accessing GrainFactory from IBootstrapProvider in 1.0.9.","user":{"login":"philreindl","id":3010883,"avatar_url":"https://avatars.githubusercontent.com/u/3010883?v=3","gravatar_id":"","url":"https://api.github.com/users/philreindl","html_url":"https://github.com/philreindl","followers_url":"https://api.github.com/users/philreindl/followers","following_url":"https://api.github.com/users/philreindl/following{/other_user}","gists_url":"https://api.github.com/users/philreindl/gists{/gist_id}","starred_url":"https://api.github.com/users/philreindl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philreindl/subscriptions","organizations_url":"https://api.github.com/users/philreindl/orgs","repos_url":"https://api.github.com/users/philreindl/repos","events_url":"https://api.github.com/users/philreindl/events{/privacy}","received_events_url":"https://api.github.com/users/philreindl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/orleans/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T21:17:31Z","updated_at":"2015-08-27T13:38:38Z","closed_at":"2015-08-27T13:38:38Z","body":"I have been working through the process of upgrading to orleans 1.0.9 from 1.0.8.  We have some code that implements IBootstrapProvider, which is used to load some starting data into the system at startup.  \r\nBefore: \r\n`var cropGrain = GrainFactory.GetGrain<ICrop>(crop.CropId); `\r\n\r\nAfter:\r\n`var cropGrain = GrainClient.GrainFactory.GetGrain<ICrop>(crop.CropId);`\r\n\r\nThis was working fine in 1.0.8.  Now, the calls to get grain references from the GrainFactory are failing due to the GrainClient not being initialized.  Since this code is running on the Silo, I wouldn't expect to need to configure a client.  Attempts to do so have failed.\r\n\r\nAre there any examples of how to properly interact with grains in the bootstrap providers, which are set up to be deployed on Azure?  \r\n\r\nThanks\r\nPhil"},"comment":{"url":"https://api.github.com/repos/dotnet/orleans/issues/comments/135432823","html_url":"https://github.com/dotnet/orleans/issues/741#issuecomment-135432823","issue_url":"https://api.github.com/repos/dotnet/orleans/issues/741","id":135432823,"user":{"login":"philreindl","id":3010883,"avatar_url":"https://avatars.githubusercontent.com/u/3010883?v=3","gravatar_id":"","url":"https://api.github.com/users/philreindl","html_url":"https://github.com/philreindl","followers_url":"https://api.github.com/users/philreindl/followers","following_url":"https://api.github.com/users/philreindl/following{/other_user}","gists_url":"https://api.github.com/users/philreindl/gists{/gist_id}","starred_url":"https://api.github.com/users/philreindl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philreindl/subscriptions","organizations_url":"https://api.github.com/users/philreindl/orgs","repos_url":"https://api.github.com/users/philreindl/repos","events_url":"https://api.github.com/users/philreindl/events{/privacy}","received_events_url":"https://api.github.com/users/philreindl/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T13:38:38Z","updated_at":"2015-08-27T13:38:38Z","body":"So it is.  Thanks for getting me straightened out!\r\n\r\n"}}