IServiceLifetimeSelector Interface
Definition
The Compiled Lifetime Selector
public interface IServiceLifetimeSelector : IServiceTypeSelectorMethods
WithSingletonLifetime()
Registers each matching concrete type with Singleton lifetime.
void WithSingletonLifetime()WithScopedLifetime()
Registers each matching concrete type with Scoped lifetime.
void WithScopedLifetime()WithTransientLifetime()
Registers each matching concrete type with Transient lifetime.
void WithTransientLifetime()WithLifetime(ServiceLifetime)
Registers each matching concrete type with the specified lifetime.
void WithLifetime(ServiceLifetime lifetime)Parameters
lifetime ServiceLifetime

