davidyack / Xrm.Tools.CRMWebAPI

This is an API helper for working with the Common Data Service (CDS) Web API
MIT License
143 stars 73 forks source link

Configurable HttpClient timeout #79

Open rokzu opened 5 years ago

rokzu commented 5 years ago

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?

davidyack commented 4 years ago

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

mohsinonxrm commented 4 years ago

@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.