P
Paolo Liverani
Hi,
I am writing a Web Service and I am having problems managing
concurrency of web methods.
Actually, I am interested in avoiding concurrency at all.
How can I ensure that only one web method is running at a given time?
I tried to wrap every webmethod inside an Application.Lock() /
Application.Unlock() pair, but it doesn't seem to be working.
The problem I am trying to solve is the following: on entry,
every web method reads in a status file, performs some computations,
and then writes down the file to disk. I must be sure that access to
this file is mutually exclusive.
Thank you in advance for your help
I am writing a Web Service and I am having problems managing
concurrency of web methods.
Actually, I am interested in avoiding concurrency at all.
How can I ensure that only one web method is running at a given time?
I tried to wrap every webmethod inside an Application.Lock() /
Application.Unlock() pair, but it doesn't seem to be working.
The problem I am trying to solve is the following: on entry,
every web method reads in a status file, performs some computations,
and then writes down the file to disk. I must be sure that access to
this file is mutually exclusive.
Thank you in advance for your help