Ejemplo n.º 1
0
 private void StartThreads(ISensor barPressureSensor, ISensor temperatureSensor)
 {
     _temperatureThread = new MeasurementThread(temperatureSensor);
     _barPressureThread = new MeasurementThread(barPressureSensor);
     _timeThread        = new TimeThread(_eventAggregator);
     _timeThread.StartThread();
     _temperatureThread.StartThread();
     _barPressureThread.StartThread();
 }
Ejemplo n.º 2
0
        public virtual void Dispose()
        {
            if (TimeThread == null)
            {
                return;
            }

            TimeThread.Abort();
            TimeThread = null;
        }
Ejemplo n.º 3
0
        protected override void runImpl()
        {
            GsAuthResponse gsAuthResponse = GameService.RegisterGameServer(base.Client, gameId, ipArray, port, maxPlayers, password);

            SendPacket(new SM_GS_AUTH_RESPONSE(gsAuthResponse));
            if (gsAuthResponse == GsAuthResponse.AUTHED)
            {
                TimeThread.GetInstance().Schedule(delegate
                {
                    _Lambda_0024__8_002D0();
                }, 500L);
            }
        }
Ejemplo n.º 4
0
 protected void StopTime()
 {
     TimeThread.Abort();
     TimeThread = null;
 }