volosoft / castle-windsor-ms-adapter

Castle Windsor ASP.NET Core / Microsoft.Extensions.DependencyInjection Adapter
https://www.nuget.org/packages/Castle.Windsor.MsDependencyInjection
MIT License
85 stars 29 forks source link

MsLifetimeScope disposing fix #25

Closed pecanw closed 7 months ago

pecanw commented 6 years ago

In some scenarios (namely using TypedFactoryFacility and resolving scoped component using Func) failed due to a missing MsLifetimeScope.Current which was released too early.

If you wish to add a test for this scenario please feel free to get it from my ContainerTest.

acjh commented 6 years ago

You can include the test in this PR for regression testing.

hikalkan commented 6 years ago

@pecanw we will be very happy if you can add test yourself as @acjh stated.