I should disable all outgoing internet requests if the application starts with a particular parameter.
Currently I replace WebRequest.Create methods with my own ones using the reflection. My methods just throw an exception.
Seems I also have to replace HttpClient methods. But there are too many different methods to replace. Just want to be sure in that I’m on the right way.
Or, is there another way to disable all outgoing requests? E.g. use app.config or something else?
The target framework is .NETFramework, v4.7.2.