G
Guest
Hello!
I have a question that I really can’t think of an answer for, but thought I
might as well give a shot here. I have a web service, created by the VS web
service creator. I have another class, clsWebservice, which provides easy
asynchronous access to each method in the web service. However, the problem
is sometimes a web service call might be dropped, and I want to watch for
that, with a timeout to tell the user that there’s a problem, and ask if he
wants to reissue the request. How would I do the timeout? The easiest answer
would seem to be the AsyncWaitHandle.WaitOne, with a timeout, but that stops
my main thread, so it can’t refresh during that time, and to the user, it
would look like it’s locking up. However, I also couldn’t find a way to start
a thread, and pass parameters through it to a function, to pass to the web
service, which would be ideal – because then it wouldn’t matter if I locked
up that thread.
I apologize; I am rather new at threading.
God bless,
Jose
I have a question that I really can’t think of an answer for, but thought I
might as well give a shot here. I have a web service, created by the VS web
service creator. I have another class, clsWebservice, which provides easy
asynchronous access to each method in the web service. However, the problem
is sometimes a web service call might be dropped, and I want to watch for
that, with a timeout to tell the user that there’s a problem, and ask if he
wants to reissue the request. How would I do the timeout? The easiest answer
would seem to be the AsyncWaitHandle.WaitOne, with a timeout, but that stops
my main thread, so it can’t refresh during that time, and to the user, it
would look like it’s locking up. However, I also couldn’t find a way to start
a thread, and pass parameters through it to a function, to pass to the web
service, which would be ideal – because then it wouldn’t matter if I locked
up that thread.
I apologize; I am rather new at threading.
God bless,
Jose