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

Castle.MicroKernel.Registration.Lifestyle.LifestyleGroup<TService>

public class LifestyleGroup<TService> : RegistrationGroup<TService>
namespace Castle.MicroKernel.Registration.Lifestyle { public class LifestyleGroup<TService> : RegistrationGroup<TService> where TService : class { public ComponentRegistration<TService> Transient { get; } public ComponentRegistration<TService> Singleton { get; } public ComponentRegistration<TService> PerThread { get; } public ComponentRegistration<TService> Pooled { get; } public LifestyleGroup(ComponentRegistration<TService> registration); public ComponentRegistration<TService> Is(LifestyleType type); public ComponentRegistration<TService> PooledWithSize(int? initialSize, int? maxSize); public ComponentRegistration<TService> Scoped<TScopeAccessor>() where TScopeAccessor : IScopeAccessor, new; public ComponentRegistration<TService> Scoped(Type scopeAccessorType); public ComponentRegistration<TService> Scoped(); public ComponentRegistration<TService> BoundTo<TBaseForRoot>() where TBaseForRoot : class; public ComponentRegistration<TService> BoundToNearest<TBaseForRoot>() where TBaseForRoot : class; public ComponentRegistration<TService> BoundTo(Func<IHandler[], IHandler> scopeRootBinder); public ComponentRegistration<TService> Custom(Type customLifestyleType); public ComponentRegistration<TService> Custom<TLifestyleManager>() where TLifestyleManager : ILifestyleManager, new; } }