<PackageReference Include="Castle.Windsor" Version="5.1.0" />

Castle.MicroKernel.Lifestyle.Scoped.CreationContextScopeAccessor

namespace Castle.MicroKernel.Lifestyle.Scoped { public class CreationContextScopeAccessor : IScopeAccessor, IDisposable { public CreationContextScopeAccessor(ComponentModel componentModel, Func<IHandler[], IHandler> scopeRootSelector); public void Dispose(); public ILifetimeScope GetScope(CreationContext context); public static IHandler DefaultScopeRootSelector<TBaseForRoot>(IHandler[] resolutionStack); public static IHandler NearestScopeRootSelector<TBaseForRoot>(IHandler[] resolutionStack); } }