示例#1
0
 internal void DropExpiredMessage(MessagingStatisticsGroup.Phase phase)
 {
     MessagingStatisticsGroup.OnMessageExpired(phase);
     if (logger.IsVerbose2)
     {
         logger.Verbose2("Dropping an expired message: {0}", this);
     }
     ReleaseBodyAndHeaderBuffers();
 }
示例#2
0
        internal void OnDropExpiredMessage(Message message, MessagingStatisticsGroup.Phase phase)
        {
            if (this.IsEnabled(DropExpiredMessageEventName))
            {
                this.Write(DropExpiredMessageEventName, new { Message = message, Phase = phase });
            }

            MessagingStatisticsGroup.OnMessageExpired(phase);
            LogDropExpiredMessage(this, message, phase, null);
        }
示例#3
0
 internal void DropExpiredMessage(MessagingStatisticsGroup.Phase phase)
 {
     MessagingStatisticsGroup.OnMessageExpired(phase);
     ReleaseBodyAndHeaderBuffers();
 }
示例#4
0
 internal void DropExpiredMessage(MessagingStatisticsGroup.Phase phase)
 {
     MessagingStatisticsGroup.OnMessageExpired(phase);
 }
示例#5
0
 internal void DropExpiredMessage(ILogger logger, MessagingStatisticsGroup.Phase phase)
 {
     logger.LogWarning((int)ErrorCode.Messaging_DroppingExpiredMessage, "Dropped expired message during {Phase} phase.  Message: {Message}", phase.ToString(), logger.IsEnabled(LogLevel.Trace) ? this.ToLongString() : this.ToString());
     MessagingStatisticsGroup.OnMessageExpired(phase);
 }