I have the following program. I've developed a synchronous event receiver (ItemUpdating) which is executed when a list item is being changed. I've run into the situation where the code in my event receiver is being executed, but under certain circumstances the user might get a saving conflict.
In this scenario my code has already being executed while the assumptions inside the event receiver where wrong, because of the saving conflict.
Is there any way to programmatically detect if will be occuring? Sorry if my explanation wasn't too good, but english is not my mother tounge. This is a SharePoint 2013 Standard Server.