How to synchronize the access to a List used in ASP.NET?
I have some problems on a site with the concurrent access to a list. This list keeps a cart of items, and multiple deletes are crashing the site.
Which is the best method to sync them?
Is a lock enough?
The lock option seems to be ugly because the code is spread all over the place and is pretty messy.