In JavaScript I am adding a proxy rule as such....
urlUtils.addProxyRule({
urlPrefix: "https://xyz.xyz.xyz.gov/arcgis/rest/services/Testing/Test/FeatureServer/0",
proxyUrl: "https://xyz.xyz.xyz.gov/DotNet/proxy.ashx"
});
But I have a .Net app that I need to call a GP Service from C# BUT I want to run it through the proxy so Credentials are not needed....
How would I modify this code to work in C# so I can use it to bypass credentials on a secured GP Service
urlUtils.addProxyRule({
urlPrefix: "https://xyz.xyz.xyz.gov/arcgis/rest/services/Testing/Test/GP_TOOL/",
proxyUrl: "https://xyz.xyz.xyz.gov/DotNet/proxy.ashx"
});