/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ReverseProxy/Model/ReverseProxyFeature.cs
34 строки
995 B
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; using System.Collections.Generic; namespace Yarp.ReverseProxy.Model; /// <summary> /// Stores the current proxy configuration used when processing the request. /// </summary> public class ReverseProxyFeature : IReverseProxyFeature { private IReadOnlyList<DestinationState> _availableDestinations = default!; /// <inheritdoc/> public RouteModel Route { get; init; } = default!; /// <inheritdoc/> public ClusterModel Cluster { get; set; } = default!; /// <inheritdoc/> public IReadOnlyList<DestinationState> AllDestinations { get; init; } = default!; /// <inheritdoc/> public IReadOnlyList<DestinationState> AvailableDestinations { get => _availableDestinations; set => _availableDestinations = value ?? throw new ArgumentNullException(nameof(value)); } /// <inheritdoc/> public DestinationState? ProxiedDestination { get; set; } }