void IClassFactory.LockServer(bool bLock)
 {
     if (bLock)
     {
         FilterWheelSim.CountLock();
     }
     else
     {
         FilterWheelSim.UncountLock();
     }
     // Always attempt to see if we need to shutdown this server application.
     FilterWheelSim.ExitIf();
 }
 public ReferenceCountedObjectBase()
 {
     // We increment the global count of objects.
     FilterWheelSim.CountObject();
 }