internal static void ReleaseLock()
{
using (var context = new DataHandler())
{
var notificationLock = context.Synchronizations.SingleOrDefault(lockItem => lockItem.LockName == NOTIFICATIONLOCKNAME);
if (notificationLock == null)
throw new Exception(); //TODO: #notifB: ?? what is this?
notificationLock.Locked = false;
context.SubmitChanges();
}
Debug.WriteLine("#Notification> ** lock released");
}