Пример #1
0
        private bool ProcessNextPDU()
        {
            var raw = new RawPDU(_network);

            if (raw.Type == 0x04)
            {
                if (_dimse == null)
                {
                    _dimse = new DcmDimseInfo();
                    _assoc.TotalDimseReceived++;
                }
            }

            raw.ReadPDU();

            if (_multiThreaded)
            {
                _processingQueue.Enqueue(delegate
                                             {
                                                 ProcessRawPDU(raw);
                                             });
                return true;
            }
            return ProcessRawPDU(raw);
        }