/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ReverseProxy/Configuration/IProxyConfigFilter.cs
28 строк
1 KB
Kahbazi
File Scoped Namespaces (#1352)
12 ноя 2021, 21:53
Не верифицирован
12 ноя 2021, 21:53
44f13d9
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Threading; using System.Threading.Tasks; namespace Yarp.ReverseProxy.Configuration; /// <summary> /// A configuration filter that will run each time the proxy configuration is loaded. /// </summary> public interface IProxyConfigFilter { /// <summary> /// Allows modification of a cluster configuration. /// </summary> /// <param name="cluster">The <see cref="ClusterConfig"/> instance to configure.</param> /// <param name="cancel"></param> ValueTask<ClusterConfig> ConfigureClusterAsync(ClusterConfig cluster, CancellationToken cancel); /// <summary> /// Allows modification of a route configuration. /// </summary> /// <param name="route">The <see cref="RouteConfig"/> instance to configure.</param> /// <param name="cluster">The <see cref="ClusterConfig"/> instance related to <see cref="RouteConfig"/>.</param> /// <param name="cancel"></param> ValueTask<RouteConfig> ConfigureRouteAsync(RouteConfig route, ClusterConfig? cluster, CancellationToken cancel); }