Timeouts Persister

Component: Sql Persistence
NuGet Package NServiceBus.Persistence.Sql (5.x)
Target NServiceBus Version: 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.


Last modified