Hello All,
I was working on plugin for dynamics 365 online system with lock statement.
We are trying to update the seat availability on the basis of booking and bookings are created in bulk.
So what should happen is it should check how many booking records are created and update them in seat availability text field.
When we try it for single booking record it works fine but when booking records are created in bulk it just mess up the counting.
We had applied the same approach on the On-premise system and it works fine but it looks like lock is not working in any online systems.
So, Can anyone suggest me a way how to implement lock which should work in the online system?
The current lock implement is like-
private static readonly object readWriteLock = new object();
lock (readWriteLock)
{ Logic }
This working on On-Premise systems but not in Online system.
*This post is locked for comments