Subscription Persister

Component: Sql Persistence | Nuget: NServiceBus.Persistence.Sql (Version: 2.x)
Target NServiceBus Version: 6.x

Caching

Subscriptions can be cached for a given period of time.

Edit
var persistence = endpointConfiguration.UsePersistence<SqlPersistence>();
var subscriptions = persistence.SubscriptionSettings();
subscriptions.CacheFor(TimeSpan.FromMinutes(1));

This is a required setting. To disabled Subscriptions caching use the following:

Edit
var persistence = endpointConfiguration.UsePersistence<SqlPersistence>();
var subscriptions = persistence.SubscriptionSettings();
subscriptions.DisableCache();

Last modified