How to block all HTTP calls from Application ( C# WPF)

Hi 1 Reputation point
2021-05-14T12:15:19.763+00:00

1) How to block all HTTP calls from Application ( C# WPF)?
2) Do we need to set security protocol to call HTTPS request?
System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,676 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,426 questions
{count} votes