{"action":"opened","issue":{"url":"https://api.github.com/repos/YoloDev/elephanet/issues/23","labels_url":"https://api.github.com/repos/YoloDev/elephanet/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/YoloDev/elephanet/issues/23/comments","events_url":"https://api.github.com/repos/YoloDev/elephanet/issues/23/events","html_url":"https://github.com/YoloDev/elephanet/issues/23","id":105932690,"number":23,"title":"IdentityFactory - potential threading issues","user":{"login":"fwise","id":130894,"avatar_url":"https://avatars.githubusercontent.com/u/130894?v=3","gravatar_id":"","url":"https://api.github.com/users/fwise","html_url":"https://github.com/fwise","followers_url":"https://api.github.com/users/fwise/followers","following_url":"https://api.github.com/users/fwise/following{/other_user}","gists_url":"https://api.github.com/users/fwise/gists{/gist_id}","starred_url":"https://api.github.com/users/fwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwise/subscriptions","organizations_url":"https://api.github.com/users/fwise/orgs","repos_url":"https://api.github.com/users/fwise/repos","events_url":"https://api.github.com/users/fwise/events{/privacy}","received_events_url":"https://api.github.com/users/fwise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-11T02:23:40Z","updated_at":"2015-09-11T02:23:40Z","closed_at":null,"body":"I'm seeing some behavior in some XUnit tests (this is basically how I am auditing this lib) that indicate some threading/race conditions when accessing the IdentityFactory.  I'm guessing the access to the static Dictionary is the cause.\r\n\r\n  -  My assumption is that a single DocumentStore could be created per application and that the DocumentSessions were the \"unit of work\".\r\n  -  I think the Elephanet tests to not expose this issue because the parallelization Xunit does is at the fixture level (not Fact) and each test fixture creates its own DocumentStore.\r\n\r\nWill post more detail but wanted to get this out there."}}