[0.71] Test HttpServer build fix (#12065)

* Test HttpServer build fix (#12001)

* Test HttpServer build fix

* Change files

* Cast m_ioThreadCount

* fix CoreApp?

---------

Co-authored-by: Julio César Rocha <JunielKatarn@users.noreply.github.com>
Co-authored-by: Julio C. Rocha <julio.rocha@microsoft.com>
Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>

* Remove change files

* Change files

---------

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
This commit is contained in:
Julio César Rocha 2023-08-24 15:32:06 -07:00 коммит произвёл GitHub
Родитель 3183aace3d
Коммит 5cc488cbd2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Test HttpServer build fix (#12001)",
"packageName": "react-native-windows",
"email": "julio.rocha@microsoft.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -231,7 +231,7 @@ static void SetProperties(JsonObject const &json, RNCoreApp *app) {
std::wstring nsName;
std::wstring localName;
if (lastDot != name.rend()) {
nsName = std::wstring{name.begin(), static_cast<uint64_t>(name.rend() - lastDot - 1)};
nsName = std::wstring{name.begin(), static_cast<size_t>(name.rend() - lastDot - 1)};
localName = std::wstring{lastDot.base()};
} else {
localName = name;

Просмотреть файл

@ -283,8 +283,8 @@ void HttpSession::Close()
#pragma region HttpServer
HttpServer::HttpServer(string &&address, uint16_t port, size_t concurrency)
: m_ioThreadCount{concurrency}
HttpServer::HttpServer(string &&address, uint16_t port, int concurrency)
: m_ioThreadCount{ static_cast<size_t>(concurrency) }
, m_ioContext{concurrency}
, m_acceptor{make_strand(m_ioContext)}
{
@ -319,7 +319,7 @@ HttpServer::HttpServer(string &&address, uint16_t port, size_t concurrency)
}
}
HttpServer::HttpServer(uint16_t port, size_t concurrency)
HttpServer::HttpServer(uint16_t port, int concurrency)
: HttpServer("0.0.0.0", port, concurrency)
{
}

Просмотреть файл

@ -126,8 +126,8 @@ class HttpServer : public std::enable_shared_from_this<HttpServer>
// address - Valid IP address string (i.e. "127.0.0.1).
// port - TCP port number (i.e. 80).
///
HttpServer(std::string &&address, uint16_t port, size_t concurrency = 1);
HttpServer(uint16_t port, size_t concurrency = 1);
HttpServer(std::string &&address, uint16_t port, int concurrency = 1);
HttpServer(uint16_t port, int concurrency = 1);
~HttpServer();