Exemple #1
0
 void IClassFactory.LockServer(bool bLock)
 {
     TelescopeHardware.TL.LogMessage("LockServer", "Lock server: " + bLock);
     if (bLock)
     {
         TelescopeSimulatorLocalServer.CountLock();
     }
     else
     {
         TelescopeSimulatorLocalServer.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");
     TelescopeSimulatorLocalServer.ExitIf();
 }
 public ReferenceCountedObjectBase()
 {
     // We increment the global count of objects.
     TelescopeHardware.TL.LogMessage("ReferenceCountedObjectBase", "Incrementing object count");
     TelescopeSimulatorLocalServer.CountObject();
 }