Class RabbitExpressionEvaluatingInterceptor
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class RabbitExpressionEvaluatingInterceptor : IChannelInterceptor, IOrdered
- Inheritance
-
RabbitExpressionEvaluatingInterceptor
- Implements
- Inherited Members
Constructors
RabbitExpressionEvaluatingInterceptor(IExpression, IExpression, IEvaluationContext)
public RabbitExpressionEvaluatingInterceptor(IExpression routingKeyExpression, IExpression delayExpression, IEvaluationContext evaluationContext)
Parameters
routingKeyExpressionIExpressiondelayExpressionIExpressionevaluationContextIEvaluationContext
Fields
DELAY_HEADER
public const string DELAY_HEADER = "scst_delay"
Field Value
ROUTING_KEY_HEADER
public const string ROUTING_KEY_HEADER = "scst_routingKey"
Field Value
Properties
Order
Gets the order of this object
public int Order { get; }
Property Value
Methods
AfterReceiveCompletion(IMessage, IMessageChannel, Exception)
Invoked after the completion of a receive regardless of any exception that have been raised thus allowing for proper resource cleanup.
public void AfterReceiveCompletion(IMessage message, IMessageChannel channel, Exception exception)
Parameters
messageIMessagethe message being processed
channelIMessageChannelthe channel the message is from
exceptionExceptionthe exception that may have occured; can be null
AfterSendCompletion(IMessage, IMessageChannel, bool, Exception)
Invoked after the completion of a send regardless of any exception that have been raised thus allowing for proper resource cleanup.
public void AfterSendCompletion(IMessage message, IMessageChannel channel, bool sent, Exception exception)
Parameters
messageIMessagethe message being processed
channelIMessageChannelthe channel the message for
sentboolthe return value of the send
exceptionExceptionthe exception that may have occured; can be null
PostReceive(IMessage, IMessageChannel)
Invoked immediately after a Message has been retrieved but before it is returned to the caller.
public IMessage PostReceive(IMessage message, IMessageChannel channel)
Parameters
messageIMessagethe message being processed
channelIMessageChannelthe channel the message is from
Returns
- IMessage
the resulting message after post processing; can be null
PostSend(IMessage, IMessageChannel, bool)
Invoked immediately after the send invocation.
public void PostSend(IMessage message, IMessageChannel channel, bool sent)
Parameters
messageIMessagethe message being processed
channelIMessageChannelthe channel the message for
sentboolthe return value of the send
PreReceive(IMessageChannel)
Invoked as soon as receive is called and before a Message is actually retrieved.
public bool PreReceive(IMessageChannel channel)
Parameters
channelIMessageChannelthe channel the message for
Returns
- bool
false if no receive should be done;
PreSend(IMessage, IMessageChannel)
Invoked before the Message is actually sent to the channel. This allows for modification of the Message if necessary.
public IMessage PreSend(IMessage message, IMessageChannel channel)
Parameters
messageIMessagethe message being processed
channelIMessageChannelthe channel the message for
Returns
- IMessage
the resulting message to send; can be null