File tree Expand file tree Collapse file tree 5 files changed +7
-23
lines changed
src/NServiceBus.Storage.MongoDB Expand file tree Collapse file tree 5 files changed +7
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public MongoPersistence()
4242
4343 s . SetDefault ( new MemberMapCache ( ) ) ;
4444
45- s . EnableFeatureByDefault < InstallerFeature > ( ) ;
45+ s . SetDefault ( new InstallerSettings ( ) ) ;
4646 } ) ;
4747
4848 Supports < StorageType . Sagas > ( s => s . EnableFeatureByDefault < SagaStorage > ( ) ) ;
Original file line number Diff line number Diff line change 99using Installation ;
1010using Settings ;
1111
12- sealed class OutboxInstaller ( IReadOnlySettings settings , InstallerSettings installerSettings ) : INeedToInstallSomething
12+ sealed class OutboxInstaller ( IReadOnlySettings settings ) : INeedToInstallSomething
1313{
1414 internal const string OutboxCleanupIndexName = "OutboxCleanup" ;
1515
1616 public async Task Install ( string identity , CancellationToken cancellationToken = default )
1717 {
18+ var installerSettings = settings . Get < InstallerSettings > ( ) ;
1819 if ( installerSettings . Disabled || ! settings . TryGet < Func < IMongoClient > > ( SettingsKeys . MongoClient , out Func < IMongoClient > ? client ) )
1920 {
2021 return ;
Original file line number Diff line number Diff line change 99using Sagas ;
1010using Settings ;
1111
12- sealed class SagaInstaller ( IReadOnlySettings settings , InstallerSettings installerSettings ) : INeedToInstallSomething
12+ sealed class SagaInstaller ( IReadOnlySettings settings ) : INeedToInstallSomething
1313{
1414 public async Task Install ( string identity , CancellationToken cancellationToken = default )
1515 {
16+ var installerSettings = settings . Get < InstallerSettings > ( ) ;
1617 if ( installerSettings . Disabled || ! settings . TryGet < Func < IMongoClient > > ( SettingsKeys . MongoClient , out Func < IMongoClient > ? client ) )
1718 {
1819 return ;
Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ namespace NServiceBus.Storage.MongoDB;
77using Installation ;
88using Settings ;
99
10- sealed class SubscriptionInstaller ( IReadOnlySettings settings , InstallerSettings installerSettings ) : INeedToInstallSomething
10+ sealed class SubscriptionInstaller ( IReadOnlySettings settings ) : INeedToInstallSomething
1111{
1212 public async Task Install ( string identity , CancellationToken cancellationToken = default )
1313 {
14+ var installerSettings = settings . Get < InstallerSettings > ( ) ;
1415 if ( installerSettings . Disabled || ! settings . TryGet < Func < IMongoClient > > ( SettingsKeys . MongoClient , out Func < IMongoClient > ? client ) )
1516 {
1617 return ;
You can’t perform that action at this time.
0 commit comments