DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
ServiceCollection.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace DotNetDupe {
8 namespace Extensions {
9 namespace DependencyInjection {
16 public:
18 ServiceCollection() = default;
20 ~ServiceCollection() override = default;
26 ServiceCollection(ServiceCollection&&) noexcept = default;
28 ServiceCollection& operator=(ServiceCollection&&) noexcept = default;
29
32 DOTNETDUPE_API DotNetDupe::System::SmartPointer<DotNetDupe::System::IServiceProvider> BuildServiceProvider();
33 };
34 }
35 }
36}
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Defines a mechanism for retrieving a service object; that is, an object that provides custom support ...
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
IServiceCollection()=default
Default constructor initializing an empty collection.
ServiceCollection(const ServiceCollection &)=default
Copy constructor.
DotNetDupe::System::SmartPointer< DotNetDupe::System::IServiceProvider > BuildServiceProvider()
Compiles the registered service descriptors into an IServiceProvider.
ServiceCollection & operator=(const ServiceCollection &)=default
Copy assignment operator.
ServiceCollection()=default
Default constructor initializing an empty collection.
ServiceCollection(ServiceCollection &&) noexcept=default
Move constructor.
~ServiceCollection() override=default
Virtual destructor for polymorphic cleanup.