예제 #1
0
        /// <summary>
        /// 运行
        /// </summary>
        /// <param name="eMQFunc"></param>
        /// <param name="mqParam"></param>
        public void Run(Enum_MQFunc eMQFunc, TParam mqParam = null)
        {
            if (_service == null || _service.EStatus == Enum_Process.Finished)
            {
                return;
            }

            _mqParam = mqParam == null ? _mqParam : mqParam;

            _service.Run(eMQFunc, _mqParam);
        }
예제 #2
0
        /// <summary>
        /// 运行
        /// </summary>
        /// <param name="eMQFunc"></param>
        /// <param name="mqParam"></param>
        public void Run(Enum_MQFunc eMQFunc, TParam mqParam)
        {
            if (!connection.IsOpen)
            {
                Init();
            }

            switch (eMQFunc)
            {
            case Enum_MQFunc.Exec:
                Exec(mqParam);
                break;

            case Enum_MQFunc.Quit:
                Quit(mqParam);
                break;
            }
        }