public static void SessiongramSent(string sessionId, NativeMsmqMessage.BufferProperty messageId, int numberOfMessages) { if (DiagnosticUtility.ShouldTraceVerbose) { Dictionary <string, string> dictionary = new Dictionary <string, string>(3); dictionary["SessionId"] = sessionId; dictionary["MSMQMessageId"] = MsmqMessageId.ToString(messageId.Buffer); dictionary["NumberOfMessages"] = Convert.ToString(numberOfMessages, CultureInfo.InvariantCulture); TraceUtility.TraceEvent(TraceEventType.Verbose, 0x4006a, System.ServiceModel.SR.GetString("TraceCodeMsmqSessiongramSent"), new DictionaryTraceRecord(dictionary), null, null); } }
internal MsmqMessageProperty(MsmqInputMessage msmqMessage) { if (msmqMessage == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("msmqMessage"); } this.lookupId = msmqMessage.LookupId.Value; if (msmqMessage.AbortCount != null) { this.abortCount = msmqMessage.AbortCount.Value; } if (msmqMessage.MoveCount != null) { this.moveCount = msmqMessage.MoveCount.Value; } this.acknowledge = (ushort)msmqMessage.Class.Value; this.messageId = MsmqMessageId.ToString(msmqMessage.MessageId.Buffer); }