C
cgambol
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
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