Table of Contents

Enum ServiceLifetime

Namespace
DotCompute.Runtime.Configuration
Assembly
DotCompute.Runtime.dll

Service lifetime options for DI registration

public enum ServiceLifetime

Fields

Scoped = 1

Scoped - one instance per scope (e.g., request)

Singleton = 0

Singleton - one instance for the application lifetime

Transient = 2

Transient - new instance every time it's requested