Can you show the progress of web services to the client - WCF

I have a service that does image processing. The time required to complete the process is 2-3 minutes. Can I upgrade a client with service progress? can I somehow tell the client that the process has reached step 3 or something like that?

I am using WCF

+5
source share
3 answers

Of course. Use some asynchronous WCF method to get the% image processing value. I mean, you have to create this method. And on the client side, you should periodically call this method.

+1
source

You can see duplex bindings that support two-way communication:

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

.

+2

This is baked into a couple of .NET collections. For example, have you looked at the WebClient class? There are ProcessChanged event handlers such as DownloadProgressChanged.

Just add them and wrap them around your methods that take time, for example. ProcessImage ().

-1
source

All Articles