Enum ServiceLifetime
- Namespace
- DotCompute.Runtime.Configuration
- Assembly
- DotCompute.Runtime.dll
Service lifetime options for DI registration
public enum ServiceLifetime
Fields
Scoped = 1Scoped - one instance per scope (e.g., request)
Singleton = 0Singleton - one instance for the application lifetime
Transient = 2Transient - new instance every time it's requested