{"action":"created","issue":{"url":"https://api.github.com/repos/ipjohnson/Grace/issues/27","labels_url":"https://api.github.com/repos/ipjohnson/Grace/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/ipjohnson/Grace/issues/27/comments","events_url":"https://api.github.com/repos/ipjohnson/Grace/issues/27/events","html_url":"https://github.com/ipjohnson/Grace/issues/27","id":55274625,"number":27,"title":"A way to find out if a singleton was resolved","user":{"login":"prasannavl","id":559409,"avatar_url":"https://avatars.githubusercontent.com/u/559409?v=3","gravatar_id":"","url":"https://api.github.com/users/prasannavl","html_url":"https://github.com/prasannavl","followers_url":"https://api.github.com/users/prasannavl/followers","following_url":"https://api.github.com/users/prasannavl/following{/other_user}","gists_url":"https://api.github.com/users/prasannavl/gists{/gist_id}","starred_url":"https://api.github.com/users/prasannavl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasannavl/subscriptions","organizations_url":"https://api.github.com/users/prasannavl/orgs","repos_url":"https://api.github.com/users/prasannavl/repos","events_url":"https://api.github.com/users/prasannavl/events{/privacy}","received_events_url":"https://api.github.com/users/prasannavl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T12:05:56Z","updated_at":"2015-01-23T12:56:46Z","closed_at":null,"body":"Hi, I was wondering if there was anyway to figure out if a registered singleton was resolved (thereby already created) without using `Locate<TheSingleton>`, since that would create it if it doesn't exist already. \r\n\r\nMy scenario is that, I'm trying to update the a few services in runtime. So, I have to update the services that already may have been resolved, which would have it as a dependency. But I'd rather not resolve a singleton if it already wasn't resolved, until they are needed. Could you please suggest the best way forward?\r\n\r\nThanks. \r\n\r\nEdit: Also, is there anyway to re-resolve a singleton, without resorting to never resolving directly and using a Func?\r\n\r\nAs I see, I can understand, the container really just has IStrategies that can be removed, and modified cleanly, but I fail to understand how singletons are handled, and where they are cached. "},"comment":{"url":"https://api.github.com/repos/ipjohnson/Grace/issues/comments/71189521","html_url":"https://github.com/ipjohnson/Grace/issues/27#issuecomment-71189521","issue_url":"https://api.github.com/repos/ipjohnson/Grace/issues/27","id":71189521,"user":{"login":"prasannavl","id":559409,"avatar_url":"https://avatars.githubusercontent.com/u/559409?v=3","gravatar_id":"","url":"https://api.github.com/users/prasannavl","html_url":"https://github.com/prasannavl","followers_url":"https://api.github.com/users/prasannavl/followers","following_url":"https://api.github.com/users/prasannavl/following{/other_user}","gists_url":"https://api.github.com/users/prasannavl/gists{/gist_id}","starred_url":"https://api.github.com/users/prasannavl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasannavl/subscriptions","organizations_url":"https://api.github.com/users/prasannavl/orgs","repos_url":"https://api.github.com/users/prasannavl/repos","events_url":"https://api.github.com/users/prasannavl/events{/privacy}","received_events_url":"https://api.github.com/users/prasannavl/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T12:56:46Z","updated_at":"2015-01-23T12:56:46Z","body":"Alright, just went through the source. As I understand it, they are in the stored in the corresponding ILifetime. I suppose simply re-configuring should do the trick?"}}