Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum Microsoft.​Extensions.​DependencyInjection.​ServiceLifetime
Assembly: Microsoft.Extensions.DependencyInjection.Abstractions
Specifies the lifetime of a service in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
Values
Singleton
Specifies that a single instance of the service will be created.
Scoped
Specifies that a new instance of the service will be created for each scope.
Remarks In ASP.NET Core applications a scope is created around each server request.
Transient
Specifies that a new instance of the service will be created every time it is requested.