MSMQ Transport Upgrade Version 1 to 2

Component: MSMQ Transport

Configuring the MSMQ transport

To use the MSMQ transport for NServiceBus, create a new instance of MsmqTransport and pass it to EndpointConfiguration.UseTransport.

Instead of

var transport = endpointConfiguration.UseTransport<MsmqTransport>();
transport.ConnectionString(connectionString);

Use:

var transport = new MsmqTransport();
endpointConfiguration.UseTransport(transport);

Configuration options

The MSMQ transport configuration options have been moved to the MsmqTransport class. See the following table for further information:

Version 1 configuration optionVersion 2 configuration option
ApplyLabelToMessagesApplyCustomLabelToOutgoingMessages
TransactionScopeOptionsConfigureTransactionScope
UseDeadLetterQueueForMessagesWithTimeToBeReceivedUseDeadLetterQueueForMessagesWithTimeToBeReceived
DisableInstallerCreateQueues
DisableDeadLetterQueueingUseDeadLetterQueue
DisableConnectionCachingForSendsUseConnectionCache
UseNonTransactionalQueuesUseTransactionalQueues
EnableJournalingUseJournalQueue
TimeToReachQueueTimeToReachQueue
DisableNativeTimeToBeReceivedInTransactionsUseNonNativeTimeToBeReceivedInTransactions
IgnoreIncomingTimeToBeReceivedHeadersIgnoreIncomingTimeToBeReceivedHeaders

Related Articles

  • MSMQ Transport
    MSMQ is a solid durable communications technology but does not dynamically detect network interfaces.
  • Upgrade Version 7 to 8
    Instructions on how to upgrade NServiceBus from version 7 to version 8.

Last modified