C# Class Stashbox.Lifetime.Lifetimes

Contains all the built-in lifetime managers.
Exibir arquivo 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_oe static_oe property

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

Scoped public_oe static_oe property

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

Singleton public_oe static_oe property

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

Transient public_oe static_oe property

Transient lifetime.
public static LifetimeDescriptor Transient
return LifetimeDescriptor