public NmqiEnvironment(NmqiPropertyHandler nmqiPropertyHandler)
 {
     base.TrConstructor("%Z% %W%  %I% %E% %U%", new object[] { nmqiPropertyHandler });
     this.properties = nmqiPropertyHandler;
     bitmode         = Convert.ToString(Marshal.SizeOf(typeof(IntPtr)));
     this.cfg        = new MQClientCfg(this);
     this.cfg.FindAndParse();
     if (Thread.GetNamedDataSlot("MQ_CLIENT_THREAD_TYPE") == null)
     {
         Thread.AllocateNamedDataSlot("MQ_CLIENT_THREAD_TYPE");
     }
 }
Exemple #2
0
        internal MQSession(NmqiEnvironment env, MQFAPConnection connection) : base(env)
        {
            this.rcvExitLockCheck     = new Lock();
            this.rcvExitLock          = new Lock();
            this.asyncTshLock         = new Lock();
            this.asyncTshQueue        = new Queue <MQTSH>();
            this.rmid                 = -1;
            this.requestEntryMutex    = new Lock();
            this.rmtReqEntMaxPollTime = 0x7d0;
            this.sessionMultiplexed   = -1;
            base.TrConstructor("%Z% %W% %I% %E% %U%", new object[] { env, connection });
            MQClientCfg cfg = env.Cfg;

            this.parentConnection = connection;
        }