Xrm.Tools.CRMWebAPI icon indicating copy to clipboard operation
Xrm.Tools.CRMWebAPI copied to clipboard

Configurable HttpClient timeout

Open rokzu opened this issue 6 years ago • 2 comments

For some operations (ExportSolution) the default HttpClient timeout of 2 minutes is not long enough, bigger solutions sometimes take longer to export. Any way to extend the timeout or would adding a configurable timeout parameter to the CRMWebAPIConfig and the constructors of CRMWebAPI address this issue?

rokzu avatar Apr 30 '19 12:04 rokzu

Not opposed to adding to CRMWebAPIConfig - we don't plan to add more constructor params

davidyack avatar Dec 11 '19 01:12 davidyack

@rokzu , I'll be opening a pull request in a couple of days (already coded, going to test a bit more) and submitting the changes for @davidyack to review and merge.

You can now provide timeout as part of the configuration or as an optional constructor parameter. If none is provided then it'll default to 2.0 minutes.

mohsinonxrm avatar Jun 18 '20 17:06 mohsinonxrm