We have C# code that read and writes data in CRM online, using ServiceClient (as found in Microsoft.PowerPlatform.Dataverse.Client; currenty I use version 1.0.4).
From my development system this works fine. However, the machine where the code is to run eventually can only connect to internet via a webproxy.
Now my question is: how can I make it clear to ServiceClient to access my Dynamics online environment via this webproxy?
I already tried adding <system.net> containing a <defaultproxy> section in app.config, but that gives a runtime error (apparently this is not supported anymore; see c# - Unrecognized configuration section system.net (.NET 6/.NET Core) - Stack Overflow)