/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ReverseProxy/ServiceDiscovery/ResolvedDestinationCollection.cs
31 строка
1 KB
Reuben Bond
Add `IDestinationResolver` for resolving cluster destination addresses (#2210)
17 авг 2023, 03:25
Не верифицирован
17 авг 2023, 03:25
2fdb425
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using Microsoft.Extensions.Primitives; using Yarp.ReverseProxy.Configuration; namespace Yarp.ReverseProxy.ServiceDiscovery { /// <summary> /// Represents a collection of resolved destinations. /// </summary> public sealed class ResolvedDestinationCollection { public ResolvedDestinationCollection(IReadOnlyDictionary<string, DestinationConfig> destinations, IChangeToken? changeToken) { Destinations = destinations; ChangeToken = changeToken; } /// <summary> /// Gets the map of destination names to destination configurations. /// </summary> public IReadOnlyDictionary<string, DestinationConfig> Destinations { get; init; } /// <summary> /// Gets the optional change token used to signal when this collection should be refreshed. /// </summary> public IChangeToken? ChangeToken { get; init; } } }