DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
ServiceLifetime.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
DotNetDupe
{
4
namespace
Extensions
{
5
namespace
DependencyInjection
{
11
enum class
ServiceLifetime
{
13
Singleton
,
15
Scoped
,
17
Transient
18
};
19
}
20
}
21
}
22
DotNetDupe::Extensions::DependencyInjection
Definition
IServiceCollection.h:9
DotNetDupe::Extensions::DependencyInjection::ServiceLifetime
ServiceLifetime
Specifies the lifetime of a service in an IServiceCollection.
Definition
ServiceLifetime.h:11
DotNetDupe::Extensions::DependencyInjection::ServiceLifetime::Scoped
@ Scoped
Specifies that a new instance of the service will be created for each scope.
Definition
ServiceLifetime.h:15
DotNetDupe::Extensions::DependencyInjection::ServiceLifetime::Singleton
@ Singleton
Specifies that a single instance of the service will be created.
Definition
ServiceLifetime.h:13
DotNetDupe::Extensions::DependencyInjection::ServiceLifetime::Transient
@ Transient
Specifies that a new instance of the service will be created every time it is requested.
Definition
ServiceLifetime.h:17
DotNetDupe::Extensions
Definition
IServiceCollection.h:8
DotNetDupe
Definition
IServiceCollection.h:7
Include
Extensions
DependencyInjection
ServiceLifetime.h
Generated by
1.18.0