public void Global(Action<GlobalActions> action) { using (var qa = new GlobalActions(instance, database, Id)) { action(qa); } }
public void Global(Action <GlobalActions> action) { var shouldTakeLock = usageLock.IsReadLockHeld == false; try { if (shouldTakeLock) { usageLock.EnterReadLock(); } using (var qa = new GlobalActions(instance, columnsInformation, database, Id)) { action(qa); } } finally { if (shouldTakeLock) { usageLock.ExitReadLock(); } } }
public void Global(Action<GlobalActions> action) { var shouldTakeLock = usageLock.IsReadLockHeld == false; try { if (shouldTakeLock) usageLock.EnterReadLock(); using (var qa = new GlobalActions(instance, columnsInformation, database, Id)) { action(qa); } } finally { if(shouldTakeLock) usageLock.ExitReadLock(); } }