/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs
19 строк
481 B
Nolan Glore
Add http.sys delegation support (#1556)
18 фев 2022, 22:57
Не верифицирован
18 фев 2022, 22:57
b9c13db
Код
Авторство
О чём код?
using System.Diagnostics; using Microsoft.AspNetCore.Server.HttpSys; var builder = WebApplication.CreateBuilder(args); Debug.Assert(OperatingSystem.IsWindows()); builder.WebHost.UseHttpSys(options => { options.RequestQueueName = "SampleHttpSysServerQueue"; options.RequestQueueMode = RequestQueueMode.Create; }); var app = builder.Build(); app.Run(async context => { await context.Response.WriteAsync($"Hello World! (PID: {Environment.ProcessId})"); }); app.Run();