По сути, я перехожу с .framework на .core, но столкнулся с одной ошибкой: обработчик веб-запросов не найден. Я искал альтернативные методы для .netcore здесь.
Есть ли другой метод регистрации обработчика веб-запросов?
error
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'WebRequestHandler' could not be found
(are you missing a using directive or an assembly reference?)
public HttpClient ConfigureHttpClient(Configuration.Configuration config)
{
WebRequestHandler mtlsHandler = new WebRequestHandler
{
UseProxy = true,
UseCookies = false,
CachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore),
AuthenticationLevel = AuthenticationLevel.MutualAuthRequired,
AllowAutoRedirect = false
};
}
Подробнее здесь: https://stackoverflow.com/questions/619 ... -not-found