Skip to content

SqlLite Registry is Misconfigured #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
andrewtyped opened this issue Jul 24, 2016 · 0 comments
Open

SqlLite Registry is Misconfigured #2

andrewtyped opened this issue Jul 24, 2016 · 0 comments

Comments

@andrewtyped
Copy link
Owner

When configuring ISession in the SqlLiteRegistry, the method of configuration creates an object that won't be disposed by StructureMap when using nested containers. This line:

For<ISession>().Use(InMemorySessionFactoryProvider.Instance.OpenSession());

Should Be:

For<ISession>().Use(() => InMemorySessionFactoryProvider.Instance.OpenSession());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant