Table of Contents

Enum DependencyLifetime

Namespace
LfrlAnvil.Dependencies
Assembly
LfrlAnvil.Dependencies.dll

Specifies available dependency lifetimes.

public enum DependencyLifetime : byte

Fields

Scoped = 1

Represents a dependency that caches a single instance in the scope that resolved it.

ScopedSingleton = 2

Represents a dependency that caches a single instance in the scope that resolved it, which gets reused in all descendant scopes.

Singleton = 3

Represents a dependency that caches a single instance in the root scope, which gets reused in all other scopes.

Transient = 0

Represents a dependency that creates new instances every time it gets resolved.