예제 #1
0
        /// <summary>
        /// Processes the device not responding (V1 receiver only).
        /// </summary>
        /// <param name="operationCode">The operation code.</param>
        private void Process_HoguNotResponding(OpCodes operationCode)
        {
            DeviceId id = new DeviceId();

            switch (operationCode)
            {
            case OpCodes.ChungNotResponding:
                id = this.chungDeviceId;
                break;

            case OpCodes.HongNotResponding:
                id = this.hongDeviceId;
                break;
            }

            Trace.TraceInformation("{0}. Process_HoguNotResponding: {1} Id={2}", CLASSNAME, operationCode, id);

            if (id.IsValid())
            {
                ThreadPool.QueueUserWorkItem(delegate
                {
                    this.OnDeviceStatusUpdate(new DeviceStatusEventArgs()
                    {
                        ReceiverId = this.Id, DeviceId = id, DeviceStatus = DeviceStatusEnum.NotResponding
                    });
                });
            }
        }