Skip to content
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

Call CreateScope directly, Dispose does not work properly #42

Open
NepPure opened this issue Oct 25, 2021 · 0 comments
Open

Call CreateScope directly, Dispose does not work properly #42

NepPure opened this issue Oct 25, 2021 · 0 comments

Comments

@NepPure
Copy link

NepPure commented Oct 25, 2021

detail and demo see aspnetboilerplate/aspnetboilerplate#6293

https://github.com/Cysharp/MagicOnion/blob/8d73bfadc2cf7e59bf4fb08e0ba2d3263541323a/src/MagicOnion.Server/MethodHandler.cs?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L349

I find the problem when using Abp with MagicOnion.

It calls WindsorServiceScopeFactory.CreateScope directly, when disposeing the MsLifetimeScope may be not the same instance.

MsLifetimeScope._resolvedInstances will be more and more long, then out of memory.

I tried to debug it, and I did not find the most fundamental reason. I hope get some help, thank you very much!

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