コード例 #1
0
ファイル: MQSession.cs プロジェクト: halfsilvered/TestCodes
        internal MQTSH AllocateTSH(int tshType, byte segmentType, int requestId, bool initialize, int translength)
        {
            uint method = 0x618;

            this.TrEntry(method, new object[] { tshType, segmentType, requestId, initialize, translength });
            MQTSH tshHeaderP = null;

            try
            {
                MQFAPConnection connection = this.Connection;
                if (this.parentConnection.IsMultiplexingEnabled)
                {
                    tshHeaderP = connection.AllocateTSH(tshType, segmentType, tshHeaderP, translength);
                    tshHeaderP.SetConversationId(this.conversationId);
                    tshHeaderP.SetRequestId(requestId);
                    return(tshHeaderP);
                }
                tshHeaderP = connection.AllocateTSH(0, segmentType, tshHeaderP, translength);
            }
            finally
            {
                base.TrExit(method, tshHeaderP);
            }
            return(tshHeaderP);
        }
コード例 #2
0
ファイル: MQSession.cs プロジェクト: halfsilvered/TestCodes
        internal MQTSH AllocateTSH(int segmentType, int requestId, MQTSH tshP)
        {
            uint method = 0x616;

            this.TrEntry(method, new object[] { segmentType, requestId, tshP });
            MQTSH tshHeaderP = tshP;

            try
            {
                MQFAPConnection connection = this.Connection;
                if (this.parentConnection.IsMultiplexingEnabled)
                {
                    tshHeaderP = connection.AllocateTSH(1, segmentType, tshHeaderP);
                    tshHeaderP.SetConversationId(this.conversationId);
                    tshHeaderP.SetRequestId(requestId);
                    return(tshHeaderP);
                }
                tshHeaderP = connection.AllocateTSH(0, segmentType, tshHeaderP);
            }
            finally
            {
                base.TrExit(method, tshHeaderP);
            }
            return(tshHeaderP);
        }