How to restrict network access for child process in windows
I am starting a child process in my C # console application using the Process.Start () method. I would like to restrict the child process so that it cannot access the network.
Specifically, I am trying to run some tests by running vstest.console.exe using Process.Start (). The goal is that these tests should not access any slow or unreliable resources like network, database, etc. Any tests trying to talk over the network should fail.
I have searched the web and stackoverflow, but the closest match I got is an unanswered question . Any ideas?
+3
Turbo
source
to share
No one has answered this question yet
See similar questions:
0
or similar:
2453
1975
1141
766
719
672
307
3
0
0