상속: AbstractActions
예제 #1
0
 public void Global(Action<GlobalActions> action)
 {
     using (var qa = new GlobalActions(instance, database, Id))
     {
         action(qa);
     }
 }
예제 #2
0
        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();
                }
            }
        }
예제 #3
0
 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();
     }
 }