I have a pretty big "old" WCF service with many different methods.
Most of these methods are "normal", so they should answer in less than 10 seconds, but there are several methods (8 or 9) that are lengthy processes, so they can take a long time to get an answer.
The pick-up and drop-off times were set at 00:40:00 to ensure that they have enough time to complete these processes.
The problem is that sometimes there are connection problems, and the "normal" methods take a very long time to crash ...
They are all in the same service because they use a really large model, and they wanted to reuse the model from the service in every call (not having PersonService.User and RobotsService.User ... because they are the same class in different services).
The first solution I assume is to create another service with such long processes and set a short timeout for the normal service ... but I will need to make a lot of changes due to the use of the model ...
Is there a way to set a different timeout in each call? Or according to the service method? Should I break the Service anyway?
Thanks in advance!
source share