This is part of the NServiceBus Upgrade Guide from Version 7 to 8, which also includes the following individual upgrade guides for specific components:
Feature Details
Transports
- Upgrade AmazonSQS Transport Version 5 to 6
- MSMQ Transport Upgrade Version 1 to 2
- RabbitMQ Transport Upgrade Version 6 to 7
- SQL Server Transport Upgrade Version 6 to 7
Persistence
Configuring MSMQ Transport
To use the MSMQ Transport for NServiceBus, create a new instance MsmqTransport
and pass it to EndpointConfiguration.
.
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 option | Version 2 configuration option |
---|---|
ApplyLabelToMessages | ApplyCustomLabelToOutgoingMessages |
TransactionScopeOptions | ConfigureTransactionScope |
UseDeadLetterQueueForMessagesWithTimeToBeReceived | UseDeadLetterQueueForMessagesWithTimeToBeReceived |
DisableInstaller | CreateQueues |
DisableDeadLetterQueueing | UseDeadLetterQueue |
DisableConnectionCachingForSends | UseConnectionCache |
UseNonTransactionalQueues | UseTransactionalQueues |
EnableJournaling | UseJournalQueue |
TimeToReachQueue | TimeToReachQueue |
DisableNativeTimeToBeReceivedInTransactions | UseNonNativeTimeToBeReceivedInTransactions |
IgnoreIncomingTimeToBeReceivedHeaders | IgnoreIncomingTimeToBeReceivedHeaders |