/// <summary> /// Configures the given document store to be used when storing timeouts /// </summary> /// <param name="cfg"></param> /// <param name="storeCreator">A Func that will create the document store on NServiceBus initialization.</param> public static PersistenceExtensions <RavenDBPersistence> UseDocumentStoreForTimeouts(this PersistenceExtensions <RavenDBPersistence> cfg, Func <ReadOnlySettings, IDocumentStore> storeCreator) { DocumentStoreManager.SetDocumentStore <StorageType.Timeouts>(cfg.GetSettings(), storeCreator); return(cfg); }
/// <summary> /// Configures the given document store to be used when storing timeouts /// </summary> /// <param name="cfg"></param> /// <param name="documentStore">The document store to use</param> public static PersistenceExtensions <RavenDBPersistence> UseDocumentStoreForTimeouts(this PersistenceExtensions <RavenDBPersistence> cfg, IDocumentStore documentStore) { DocumentStoreManager.SetDocumentStore <StorageType.Timeouts>(cfg.GetSettings(), documentStore); return(cfg); }
/// <summary> /// Configures the given document store to be used when storing gateway deduplication data /// </summary> /// <param name="cfg"></param> /// <param name="documentStore">The document store to use</param> public static PersistenceExtensions <RavenDBPersistence> UseDocumentStoreForGatewayDeduplication(this PersistenceExtensions <RavenDBPersistence> cfg, IDocumentStore documentStore) { DocumentStoreManager.SetDocumentStore <StorageType.GatewayDeduplication>(cfg.GetSettings(), documentStore); return(cfg); }