NServiceBus.MessageIdExtensions.SetMessageId C# (CSharp) Method

SetMessageId() public static method

Allows the user to set the message id.
public static SetMessageId ( this options, string messageId ) : void
options this Options to extend.
messageId string The message id to use.
return void
        public static void SetMessageId(this ExtendableOptions options, string messageId)
        {
            Guard.AgainstNullAndEmpty(messageId, messageId);

            options.MessageId = messageId;
        }
MessageIdExtensions