Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can you expose the progress of a web service to a client - WCF

Tags:

c#

wcf

service

I have a service that does image processing. The time that it takes for the process to complete is something like 2-3 minutes. Can I update the client with the progress of the service? can I somehow tell the client that process reached step3 or something like that?

I am using WCF

like image 577
Ryan Avatar asked Nov 04 '22 10:11

Ryan


1 Answers

You can look at the duplex bindings, which supports two way communication:

http://msdn.microsoft.com/en-us/library/ms731064.aspx

It works using a callback mechanism.

like image 104
hendrikswan Avatar answered Nov 09 '22 06:11

hendrikswan