예제 #1
0
        internal void UpdateHconn(NmqiMQ mqInstance, Phconn phconn)
        {
            uint method = 0x2f9;

            this.TrEntry(method, new object[] { mqInstance, phconn });
            try
            {
                this.MQI = mqInstance;
                Hconn hconn = null;
                switch (this.value_)
                {
                case -1:
                    hconn = new HconnAdapter(-1);
                    break;

                case 0:
                    hconn = new HconnAdapter(0);
                    break;

                default:
                    hconn = this;
                    if (this.qMgrInfo == null)
                    {
                        this.qMgrInfo = NmqiTools.GetQueueManagerInfo(base.env, mqInstance, this);
                    }
                    break;
                }
                phconn.HConn = hconn;
            }
            finally
            {
                base.TrExit(method);
            }
        }
예제 #2
0
        private void LoadInfo()
        {
            uint method = 0x630;

            this.TrEntry(method);
            try
            {
                if (this.info == null)
                {
                    this.info = NmqiTools.GetQueueManagerInfo(base.env, this.MQFap, this.hconn);
                }
            }
            finally
            {
                base.TrExit(method);
            }
        }