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