public void LockServer(bool bLock)
        {
            if (bLock)
            {
                SubscribeAndHandleQBEvent.InterlockedIncrementServerLockCount();
            }
            else
            {
                SubscribeAndHandleQBEvent.InterlockedDecrementServerLockCount();
            }

            // Always attempt to see if we need to shutdown this server application.
            SubscribeAndHandleQBEvent.AttemptToTerminateServer();
        }
예제 #2
0
 public ReferenceCountedObjectBase()
 {
     Console.WriteLine("ReferenceCountedObjectBase contructor.");
     // We increment the global count of objects.
     SubscribeAndHandleQBEvent.InterlockedIncrementObjectsCount();
 }