Enum ServiceLifetime
Specifies the lifetime of a service in an IServiceCollection.
Namespace: nanoFramework.DependencyInjection
Assembly: nanoFramework.DependencyInjection.dll
Syntax
public enum ServiceLifetime
Fields
Name | Description |
---|---|
Scoped | Specifies that a single instance of the service will be created within a scope. |
Singleton | Specifies that a single instance of the service will be created. |
Transient | Specifies that a new instance of the service will be created every time it is requested. |