IServiceLifetimeSelector Methods
InterfaceMethods4 members
The Compiled Lifetime Selector
Registers each matching concrete type with the specified
lifetime. public interface IServiceLifetimeSelector{ public abstract void WithLifetime( ServiceLifetime lifetime) { // ... }}Parameters
lifetimeServiceLifetime Registers each matching concrete type with
ServiceLifetime.Scoped lifetime. public interface IServiceLifetimeSelector{ public abstract void WithScopedLifetime() { // ... }} Registers each matching concrete type with
ServiceLifetime.Singleton lifetime. public interface IServiceLifetimeSelector{ public abstract void WithSingletonLifetime() { // ... }} Registers each matching concrete type with
ServiceLifetime.Transient lifetime. public interface IServiceLifetimeSelector{ public abstract void WithTransientLifetime() { // ... }}
