microsoft / PowerPlatform-DataverseServiceClient

Code Replica for Microsoft.PowerPlatform.Dataverse.Client and supporting nuget packages.
MIT License
277 stars 50 forks source link

Capability of specifying timeout per service client instance #281

Open svejdo1 opened 2 years ago

svejdo1 commented 2 years ago

Currently the max connection timeout is static-only - ServiceClient.MaxConnectionTimeout; this is inconvenient for situation like having a service than handles async workload (where long waiting is tolerable, desired even sometimes for some kind of metadata publishing) and sync workload (where waiting is not tolerable - we need to fail fast as user won't wait behind browser for our service to communicate with slow dataverse).

Would it be possible to specify the timeout per service client instance instead ?

MattB-msft commented 2 years ago

This is something we can look at for future enhancement, and might be a good candidate for the "with" pattern we are considering implementing for several things.

8ggmaker commented 2 years ago

@MattB-msft is the MaxConnectionTimeout the same as the execution timeout, I see the default value of MaxConnectionTimeout is 2 minute, but we see some execution timeout of 4 minute