void IClassFactory.LockServer(bool bLock)
 {
     TelescopeHardware.TL.LogMessage("LockServer", "Lock server: " + bLock);
     if (bLock)
     {
         PushToGo.CountLock();
     }
     else
     {
         PushToGo.UncountLock();
     }
     // Always attempt to see if we need to shutdown this server application.
     TelescopeHardware.TL.LogMessage("LockServer", "Calling ExitIf to check whether we can exit the server");
     PushToGo.ExitIf();
 }
 public ReferenceCountedObjectBase()
 {
     // We increment the global count of objects.
     TelescopeHardware.TL.LogMessage("ReferenceCountedObjectBase", "Incrementing object count");
     PushToGo.CountObject();
 }