WCF Windows Service - Long operations/Callback to calling module
Posted
by A9S6
on Stack Overflow
See other posts from Stack Overflow
or by A9S6
Published on 2010-03-08T09:16:42Z
Indexed on
2010/03/08
9:21 UTC
Read the original article
Hit count: 548
I have a Windows Service that takes the name of a bunch of files and do operations on them (zip/unzip, updating db etc). The operations can take time depending on size and number of files sent to the service.
(1) The module that is sending a request to this service waits until the files are processed. I want to know if there is a way to provide a callback in the service that will notify the calling module when it is finished processing the files. Please note that multiple modules can call the service at a time to process files so the service will need to provide some kind of a TaskId I guess.
(2) If a service method is called and is running and another call is made to the same service, then how will that call be processed(I think there is only one thread asociated with the service). I have seen that when the service is taking time in processing a method, the threads associated with the service begin to increase.
© Stack Overflow or respective owner