Method BeforeDispatchAsync
BeforeDispatchAsync(byte[], MessageProperties, string, string, CancellationToken)
Called before a message is dispatched to handlers.
Task<RouteInterceptResult> BeforeDispatchAsync(byte[] body, MessageProperties properties, string transportName, string channelName, CancellationToken cancellationToken)
Parameters
bodybyte[]propertiesMessagePropertiestransportNamestringchannelNamestringcancellationTokenCancellationToken
Returns
- Task<RouteInterceptResult>
Result indicating whether any handlers were accepted for deferred processing.