/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/Http2cat/Http2CatIServiceCollectionExtensions.cs
21 строка
784 B
Brennan
Add IMemoryPoolFactory and cleanup memory pool while idle (#61554)
10 июн 2025, 00:09
Не верифицирован
10 июн 2025, 00:09
b24508e
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Http2Cat; using Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets; namespace Microsoft.Extensions.DependencyInjection; internal static class Http2CatIServiceCollectionExtensions { public static IServiceCollection UseHttp2Cat(this IServiceCollection services, Action<Http2CatOptions> configureOptions) { services.AddMetrics(); services.AddSingleton<IConnectionFactory, SocketConnectionFactory>(); services.AddHostedService<Http2CatHostedService>(); services.Configure(configureOptions); return services; } }