public SmqOppResult Opp(QueueMethod method, SessionMessage item)
        {
            //
            SmqOppResult ru = new SmqOppResult();

            if (QueueMethod.Add == method)
            {
                _smsgList.Enqueue(item);

                ru.oppSucess = true;
            }
            else if (QueueMethod.Shift == method && _smsgList.Count > 0)
            {
                ru.oppSucess = true;
                ru.item      = _smsgList.Dequeue();
            }
            else if (QueueMethod.Peek == method && _smsgList.Count > 0)
            {
                ru.oppSucess = true;
                ru.item      = _smsgList.Peek();
            }
            else if (QueueMethod.Count == method)
            {
                ru.oppSucess = true;
                ru.count     = _smsgList.Count;
            }

            return(ru);
        }
        public SmqOppResult Opp(QueueMethod method, SessionMessage item)
        {
            //
            SmqOppResult ru = new SmqOppResult();

            if (QueueMethod.Add == method)
            {

                _smsgList.Enqueue(item);

               ru.oppSucess = true;

            }
            else if (QueueMethod.Shift == method && _smsgList.Count > 0)
            {
                ru.oppSucess = true;
                ru.item = _smsgList.Dequeue();
                 
            }
            else if (QueueMethod.Peek == method && _smsgList.Count > 0)
            {
                ru.oppSucess = true;
                ru.item = _smsgList.Peek();
            
            }
            else if (QueueMethod.Count == method)
            {
                ru.oppSucess = true;
                ru.count = _smsgList.Count;
            }

            return ru;
        
        }