DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
ServiceCollection.cpp
Go to the documentation of this file.
1
#include "
pch.h
"
2
#include "
Extensions/DependencyInjection/ServiceCollection.h
"
3
#include "
Extensions/DependencyInjection/ServiceProvider.h
"
4
5
namespace
DotNetDupe
{
6
namespace
Extensions
{
7
namespace
DependencyInjection
{
8
DotNetDupe::System::SmartPointer<DotNetDupe::System::IServiceProvider>
ServiceCollection::BuildServiceProvider
() {
10
DotNetDupe::System::SmartPointer<DotNetDupe::System::IServiceProvider>
pProvider(
11
new
ServiceProvider
(*
this
),
12
true
13
);
14
16
return
pProvider;
17
}
18
}
19
}
20
}
ServiceCollection.h
ServiceProvider.h
DotNetDupe::Extensions::DependencyInjection::ServiceCollection::BuildServiceProvider
DotNetDupe::System::SmartPointer< DotNetDupe::System::IServiceProvider > BuildServiceProvider()
Compiles the registered service descriptors into an IServiceProvider.
Definition
ServiceCollection.cpp:8
DotNetDupe::Extensions::DependencyInjection::ServiceProvider::ServiceProvider
ServiceProvider(const IServiceCollection &collection)
Initializes a root ServiceProvider from an IServiceCollection.
Definition
ServiceProvider.cpp:113
DotNetDupe::System::SmartPointer
A unified smart pointer that supports both unique and shared ownership semantics.
Definition
SmartPointer.h:72
DotNetDupe::Extensions::DependencyInjection
Definition
IServiceCollection.h:9
DotNetDupe::Extensions
Definition
IServiceCollection.h:8
DotNetDupe
Definition
IServiceCollection.h:7
pch.h
DotNetDupe
ServiceCollection.cpp
Generated by
1.18.0