![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using vs 2003 and .net 1.1. I have a web service that does some work on a list of objects. Each object takes about a second to process. Lets say the client sends me a list of 1000 objects. This will take me 1000 seconds to complete. While processing I would like to be able to give the client some feedback (if they want it). I was thinking of having 2 methods: one to do the work: DoWork(uniqueId as string, ...) and one to provide status: GetProgress(uniqueId as string) as double DoWork would save the progress in an application variable. GetProgress would get the value out the the app variable and return it to the client. Does this sound right or is there another way I should do this. I also thought about writing the progress to a database and let the client query the db for the current value??? Thanks, tcochunk |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Because it is a long running operation the call will be made from the client async'ly. Once they make the 1st call (async'ly) they are free to make other requests of the same web service. One of the other calls would be: what is the status of the first call I made? This should absolutely be possible. I just want to know if my inteneded approach sounds reasonable? tcochunk |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |