DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
WebApplicationBuilder.cpp
Go to the documentation of this file.
1#include "pch.h"
5
6namespace DotNetDupe {
7 namespace WebAppCore {
8 namespace Builder {
9
12
15 : m_services(std::move(other.m_services)),
16 m_controllerRegistrars(std::move(other.m_controllerRegistrars)) {}
17
21 if (this != &other) {
23 m_services = std::move(other.m_services);
24 m_controllerRegistrars = std::move(other.m_controllerRegistrars);
25 }
27 return *this;
28 }
29
33 auto spProvider = m_services.BuildServiceProvider();
34
37
39 spApp->SetSelfPointer(spApp);
40 spApp->SetControllerRegistrars(std::move(m_controllerRegistrars));
41
43 return spApp;
44 }
45
46 }
47 }
48}
Represents the web application used to configure the HTTP pipeline and routes mirroring ASP....
Builder pattern orchestrator for configuring services, controllers, and constructing WebApplication i...
A unified smart pointer that supports both unique and shared ownership semantics.
static SmartPointer< T > NewShared()
Creates a Shared SmartPointer, default constructing T.
WebApplicationBuilder & operator=(const WebApplicationBuilder &)=delete
DotNetDupe::System::SmartPointer< WebApplication > Build()
Builds the dependency injection service provider and constructs the configured WebApplication host.
WebApplicationBuilder()
Initializes a new instance of the WebApplicationBuilder class.