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(); }
public ReferenceCountedObjectBase() { // We increment the global count of objects. TelescopeHardware.TL.LogMessage("ReferenceCountedObjectBase", "Incrementing object count"); TelescopeSimulator.CountObject(); }