C# Class Stashbox.Lifetime.Lifetimes

Contains all the built-in lifetime managers.
Show file Open project: z4kn4fein/stashbox

Public Properties

Property Type Description
PerScopedRequest Stashbox.Lifetime.LifetimeDescriptor
Scoped Stashbox.Lifetime.LifetimeDescriptor
Singleton Stashbox.Lifetime.LifetimeDescriptor
Transient LifetimeDescriptor

Public Methods

Method Description
NamedScope ( object name ) : Stashbox.Lifetime.LifetimeDescriptor

Produces a NamedScope lifetime.

Method Details

NamedScope() public static method

Produces a NamedScope lifetime.
public static NamedScope ( object name ) : Stashbox.Lifetime.LifetimeDescriptor
name object
return Stashbox.Lifetime.LifetimeDescriptor

Property Details

PerScopedRequest public static property

PerRequest lifetime.
public static LifetimeDescriptor,Stashbox.Lifetime PerScopedRequest
return Stashbox.Lifetime.LifetimeDescriptor

Scoped public static property

Scoped lifetime.
public static LifetimeDescriptor,Stashbox.Lifetime Scoped
return Stashbox.Lifetime.LifetimeDescriptor

Singleton public static property

Singleton lifetime.
public static LifetimeDescriptor,Stashbox.Lifetime Singleton
return Stashbox.Lifetime.LifetimeDescriptor

Transient public static property

Transient lifetime.
public static LifetimeDescriptor Transient
return LifetimeDescriptor