NServiceBus.MsmqSubscriptionStorageQueue.Send C# (CSharp) Method

Send() public method

public Send ( string body, string label ) : string
body string
label string
return string
        public string Send(string body, string label)
        {
            var toSend = new Message
            {
                Recoverable = true,
                Formatter = queue.Formatter,
                Body = body,
                Label = label
            };

            queue.Send(toSend, transactionTypeToUseForSend);

            return toSend.Id;
        }