C# Class NServiceBus.MessageMutator.MutateOutgoingMessageContext

Provides ways to mutate the outgoing message instance.
Mostrar archivo Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
MutateOutgoingMessageContext ( object outgoingMessage, string>.Dictionary outgoingHeaders, object incomingMessage, string>.IReadOnlyDictionary incomingHeaders ) : System.Collections.Generic

Initializes the context.

TryGetIncomingHeaders ( string>.IReadOnlyDictionary &incomingHeaders ) : bool

Gets the incoming headers that initiated the current send if it exists.

TryGetIncomingMessage ( object &incomingMessage ) : bool

Gets the incoming message that initiated the current send if it exists.

Method Details

MutateOutgoingMessageContext() public method

Initializes the context.
public MutateOutgoingMessageContext ( object outgoingMessage, string>.Dictionary outgoingHeaders, object incomingMessage, string>.IReadOnlyDictionary incomingHeaders ) : System.Collections.Generic
outgoingMessage object
outgoingHeaders string>.Dictionary
incomingMessage object
incomingHeaders string>.IReadOnlyDictionary
return System.Collections.Generic

TryGetIncomingHeaders() public method

Gets the incoming headers that initiated the current send if it exists.
public TryGetIncomingHeaders ( string>.IReadOnlyDictionary &incomingHeaders ) : bool
incomingHeaders string>.IReadOnlyDictionary
return bool

TryGetIncomingMessage() public method

Gets the incoming message that initiated the current send if it exists.
public TryGetIncomingMessage ( object &incomingMessage ) : bool
incomingMessage object
return bool