Provides ways to mutate the outgoing message instance.
        public Task MutateOutgoing(MutateOutgoingMessageContext context)
        {
            // the outgoing headers
            IDictionary<string, string> outgoingHeaders = context.OutgoingHeaders;

            object incomingMessage;
            if (context.TryGetIncomingMessage(out incomingMessage))
            {
                // do something with the incoming message
            }

            IReadOnlyDictionary<string, string> incomingHeaders;
            if (context.TryGetIncomingHeaders(out incomingHeaders))
            {
                // do something with the incoming headers
            }

            // the outgoing message
            // optionally replace the message instance by setting context.OutgoingMessage
            object outgoingMessage = context.OutgoingMessage;


            return Task.FromResult(0);
        }
 public Task MutateOutgoing(MutateOutgoingMessageContext context)
 {
     context.OutgoingHeaders["MutateOutgoingMessages"] = "ValueMutateOutgoingMessages";
     return Task.FromResult(0);
 }
 public Task MutateOutgoing(MutateOutgoingMessageContext context)
 {
     ValidateDataAnnotations(context.OutgoingMessage);
     return Task.FromResult(0);
 }