/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Kubernetes.Controller/Caching/Endpoints.cs
30 строк
814 B
Kahbazi
Convert to file-scoped namespace (#1382)
15 ноя 2021, 21:15
Не верифицирован
15 ноя 2021, 21:15
efd2a4c
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using k8s.Models; using System; using System.Collections.Generic; namespace Yarp.Kubernetes.Controller.Caching; /// <summary> /// Holds data needed from a <see cref="V1Endpoints"/> resource. /// </summary> #pragma warning disable CA1815 // Override equals and operator equals on value types public struct Endpoints #pragma warning restore CA1815 // Override equals and operator equals on value types { public Endpoints(V1Endpoints endpoints) { if (endpoints is null) { throw new ArgumentNullException(nameof(endpoints)); } Name = endpoints.Name(); Subsets = endpoints.Subsets; } public string Name { get; set; } public IList<V1EndpointSubset> Subsets { get; } }