Getting Started
Architecture
NServiceBus
Transports
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

Timeouts Persister

Component: Sql Persistence
Target Version: NServiceBus 7.x

Connection

The timeouts persister can be configured to use a dedicated connection builder. For example, it may be used for creating timeouts tables in a separate database.

var connection = @"Data Source=.\SqlExpress;Initial Catalog=timeouts;Integrated Security=True";
var persistence = endpointConfiguration.UsePersistence<SqlPersistence>();

var timeouts = persistence.TimeoutSettings();
timeouts.ConnectionBuilder(
    connectionBuilder: () =>
    {
        return new SqlConnection(connection);
    });

Migrating timeouts

Timeouts can be migrated to the native-delay delivery implementation with the migration tool.