Timeouts Persister

Component: Sql Persistence
NuGet Package NServiceBus.Persistence.Sql (4.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);
    });

Last modified