none
Status updates on long running data migration task RRS feed

  • Question

  • Hi,
     
    Not sure if I should post this in asp.net or WCF so I'll start here. I have an asp.net page that a user uses to fire off a long running data update task. The tasks is actually a WCF service hosted by a windows service, but they want status updates as the task runs... like "20 out off 1000 products updated". How can I do this with WCF. I'm having a hard time finding any tutorials.
    Wednesday, October 31, 2012 3:53 PM

Answers

  • Hi,

    As you just want to change the status of products, I suggest you not to ask the wcf service for the result all the time. Just give an estimated value and ask for the result every 5 seconds.

    Or convert the data to stream and then calculate the bytes of the stream:

    http://msdn.microsoft.com/en-us/library/cc656724

    Friday, November 2, 2012 2:40 AM