DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
ServiceLifetime.h
Go to the documentation of this file.
1#pragma once
2
3namespace DotNetDupe {
4 namespace Extensions {
5 namespace DependencyInjection {
19 }
20 }
21}
22
ServiceLifetime
Specifies the lifetime of a service in an IServiceCollection.
@ Scoped
Specifies that a new instance of the service will be created for each 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.