For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 2

How to Set Proxy in DSS REST API using CSharp?

We are using EventContext.Extract to extract data but getting random error and connection breaks with error as "An error occurred while sending the request". Could anyone please help me in setting up proxy.

dss-rest-apidatascope-selectdss
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
38.1k 71 35 53

You can use this code to set a proxy to ExtractionContexts.

using System.Net;
...
ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName.Value, dssPassword.Value);

WebProxy proxy = new WebProxy("http://<host>:<port>/", true);
extractionsContext.Options.Proxy = proxy;
extractionsContext.Options.UseProxy = true;
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea