{"action":"created","issue":{"url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/56","repository_url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB","labels_url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/56/comments","events_url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/56/events","html_url":"https://github.com/OrleansContrib/Orleans.Providers.MongoDB/issues/56","id":373208380,"node_id":"MDU6SXNzdWUzNzMyMDgzODA=","number":56,"title":"Configuration from *.json","user":{"login":"IhnatKlimchuk","id":12488585,"node_id":"MDQ6VXNlcjEyNDg4NTg1","avatar_url":"https://avatars3.githubusercontent.com/u/12488585?v=4","gravatar_id":"","url":"https://api.github.com/users/IhnatKlimchuk","html_url":"https://github.com/IhnatKlimchuk","followers_url":"https://api.github.com/users/IhnatKlimchuk/followers","following_url":"https://api.github.com/users/IhnatKlimchuk/following{/other_user}","gists_url":"https://api.github.com/users/IhnatKlimchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/IhnatKlimchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IhnatKlimchuk/subscriptions","organizations_url":"https://api.github.com/users/IhnatKlimchuk/orgs","repos_url":"https://api.github.com/users/IhnatKlimchuk/repos","events_url":"https://api.github.com/users/IhnatKlimchuk/events{/privacy}","received_events_url":"https://api.github.com/users/IhnatKlimchuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-23T21:24:45Z","updated_at":"2018-10-25T07:48:46Z","closed_at":null,"author_association":"NONE","body":"I'm trying to setup MongoDB GrainStorage with options from appsettings.json or from environment variables in common case, but don't see an elegant way to do this. Below I will provide problem short description.\r\n\r\nFor example in `AddMongoDBGrainStorage(this ISiloHostBuilder builder, string name, Action<MongoDBGrainStorageOptions> configureOptions)`  action `configureOptions` do not have access to current `IConfiguration` and as result we can't get options from appsettings file. \r\n\r\nDoes it make sense to add `AddMongoDBGrainStorage(this ISiloHostBuilder builder, string name, Action<HostBuilderContext, MongoDBGrainStorageOptions> configureOptions)` overload? In this case we can keep knowledge about adding grain storage and options source in one place.\r\n\r\nWill be glad to see other ways to configure options from appsettings.json file."},"comment":{"url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/comments/432949571","html_url":"https://github.com/OrleansContrib/Orleans.Providers.MongoDB/issues/56#issuecomment-432949571","issue_url":"https://api.github.com/repos/OrleansContrib/Orleans.Providers.MongoDB/issues/56","id":432949571,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjk0OTU3MQ==","user":{"login":"bboyle1234","id":1445862,"node_id":"MDQ6VXNlcjE0NDU4NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1445862?v=4","gravatar_id":"","url":"https://api.github.com/users/bboyle1234","html_url":"https://github.com/bboyle1234","followers_url":"https://api.github.com/users/bboyle1234/followers","following_url":"https://api.github.com/users/bboyle1234/following{/other_user}","gists_url":"https://api.github.com/users/bboyle1234/gists{/gist_id}","starred_url":"https://api.github.com/users/bboyle1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboyle1234/subscriptions","organizations_url":"https://api.github.com/users/bboyle1234/orgs","repos_url":"https://api.github.com/users/bboyle1234/repos","events_url":"https://api.github.com/users/bboyle1234/events{/privacy}","received_events_url":"https://api.github.com/users/bboyle1234/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T07:48:46Z","updated_at":"2018-10-25T07:48:46Z","author_association":"COLLABORATOR","body":"Yes, can you make a PR?"}}
{"actor":{"display_login":"bboyle1234"}}