/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ReverseProxy/Utilities/ConcurrentDictionaryExtensions.cs
16 строк
502 B
Miha Zupan
Drop 3.1 and 5.0 TFMs (#1728)
23 май 2022, 20:08
Не верифицирован
23 май 2022, 20:08
94bd127
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Concurrent; using System.Collections.Generic; namespace Yarp.ReverseProxy.Utilities; internal static class ConcurrentDictionaryExtensions { public static bool Contains<TKey, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, KeyValuePair<TKey, TValue> item) where TKey : notnull { return ((ICollection<KeyValuePair<TKey, TValue>>)dictionary).Contains(item); } }