Subscription Persister

Component: Sql Persistence
NuGet Package NServiceBus.Persistence.Sql (4-pre)
Target NServiceBus Version: 7.x
This page targets a pre-release version and is subject to change prior to the final release.

Caching

Subscriptions can be cached for a given period of time.

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:

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

Last modified