Files
.vscode
Adaptation
.config
.vscode
Eaf
FileHandlers
Ifx
Infineon
Monitoring
MonA
ExtWebClient.cs
IMonIn.cs
MonIn.cs
State.cs
PeerGroup
Shared
_Tests
.editorconfig
MET08RESIMAPCDE-Development.yml
MET08RESIMAPCDE.Tests.csproj
MET08RESIMAPCDE.yml
appsettings.Development.json
appsettings.json
package.json
FileHandlers
Properties
Shared
.gitignore
MET08RESIMAPCDE.csproj
README.md
met08resimapcde/Adaptation/Infineon/Monitoring/MonA/ExtWebClient.cs

20 lines
466 B
C#

using System;
using System.Net;
namespace Infineon.Monitoring.MonA;
#nullable disable
#pragma warning disable SYSLIB0014
public class ExtWebClient : WebClient
{
protected override WebRequest GetWebRequest(Uri address)
{
WebRequest webRequest = base.GetWebRequest(address);
if (webRequest != null)
webRequest.PreAuthenticate = PreAuthenticate;
return webRequest;
}
public bool PreAuthenticate { get; set; }
}