How to add timeout for a request in bing ads sdk using the ServiceClient class?

%3CLINGO-SUB%20id%3D%22lingo-sub-2857085%22%20slang%3D%22en-US%22%3EHow%20to%20add%20timeout%20for%20a%20request%20in%20bing%20ads%20sdk%20using%20the%20ServiceClient%20class%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2857085%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20know%20that%20is%20there%20any%20way%20to%20add%20a%20timeout%20for%20the%20%3CSTRONG%3EServiceClient%20%3C%2FSTRONG%3EClass%20and%20its%20corresponding%20methods%3F%3CBR%20%2F%3EAlso%20note%20that%20we%20are%20using%20%3CSTRONG%3EPollGenerateReport()%3C%2FSTRONG%3E%2C%20%3CSTRONG%3ESubmitGenerateReport()%3C%2FSTRONG%3E%20in%20the%20ServiceClient%2C%20and%20we%20want%20to%20add%20a%20timeout%20to%20these%20requests.%3C%2FP%3E%3CP%3EMoreover%2C%20we%20are%20%3CSTRONG%3Enot%20%3C%2FSTRONG%3Eusing%20the%20%3CSTRONG%3EBulkServiceManager%20%3C%2FSTRONG%3Eclass%2C%20instead%20directly%20using%20the%20ServiceClient%20class%20to%20make%20the%20calls.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2857085%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBing%20Ads%20SDK%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etimeout%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I want to know that is there any way to add a timeout for the ServiceClient Class and its corresponding methods?
Also note that we are using PollGenerateReport(), SubmitGenerateReport() in the ServiceClient, and we want to add a timeout to these requests.

Moreover, we are not using the BulkServiceManager class, instead directly using the ServiceClient class to make the calls.

0 Replies