Newbie Question

B

Blue Streak

Is there an equivalent in ASP.NET for the Application.Lock and Application.Unlock commands?
 
B

Brock Allen

You want to look into the Monitor.Enter and Monitor.Exit methods. If you're
doing C#, then also check out the lock keyword.
 
K

Kevin Spencer

Hi Blue Streak,

Yes, as has been posted by others. However, as you're a "newbie" I thought
you might not be awarae of the Application Cache, which is recommended over
the ApplicationState, because it is thread-safe. The Cache also has the
ability to automatically expire objects stored in it. And because it is
thread-safe, it needs no locking.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

Is there an equivalent in ASP.NET for the Application.Lock and
Application.Unlock commands?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,097
Members
48,773
Latest member
Kaybee

Latest Threads

Top