LifestyleGroup<TService>
Assign a custom lifestyle type, that implements ILifestyleManager.
public ComponentRegistration<TService> Custom<TLifestyleManager>() where TLifestyleManager : ILifestyleManager
Assign a custom lifestyle type, that implements ILifestyleManager.
Sets the lifestyle to the specified type.
public ComponentRegistration<TService> Scoped<TScopeAccessor>() where TScopeAccessor : IScopeAccessor
Assigns scoped lifestyle with scope accessed via TScopeAccessor instances.
Assigns scoped lifestyle with scope accessed via scopeAccessorType instances if provided, or default accessor otherwise.