From 5d19392ec1fd57649d63e1511093b4fbe8ca9e73 Mon Sep 17 00:00:00 2001 From: Konstantin Savosteev Date: Tue, 19 Nov 2024 20:15:35 +0200 Subject: [PATCH] refactor --- .../Infrastructure/ScopedSchemaFactory.cs | 2 +- src/VirtoCommerce.Xapi.Web/Module.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/VirtoCommerce.Xapi.Core/Infrastructure/ScopedSchemaFactory.cs b/src/VirtoCommerce.Xapi.Core/Infrastructure/ScopedSchemaFactory.cs index abd2e31..ba96788 100644 --- a/src/VirtoCommerce.Xapi.Core/Infrastructure/ScopedSchemaFactory.cs +++ b/src/VirtoCommerce.Xapi.Core/Infrastructure/ScopedSchemaFactory.cs @@ -19,7 +19,7 @@ protected override List GetSchemaBuilders() { var schemaBuilders = base.GetSchemaBuilders(); - // find all builders with inside this project + // find all builders inside this assembly var currentAssembly = typeof(TMarker).Assembly; var subSchemaBuilders = schemaBuilders diff --git a/src/VirtoCommerce.Xapi.Web/Module.cs b/src/VirtoCommerce.Xapi.Web/Module.cs index 06083d9..2f32290 100644 --- a/src/VirtoCommerce.Xapi.Web/Module.cs +++ b/src/VirtoCommerce.Xapi.Web/Module.cs @@ -8,7 +8,6 @@ using VirtoCommerce.Platform.Core.Modularity; using VirtoCommerce.Platform.Core.Settings; using VirtoCommerce.TaxModule.Core.Model; -using VirtoCommerce.Xapi.Core; using VirtoCommerce.Xapi.Core.Extensions; using VirtoCommerce.Xapi.Core.Infrastructure; using VirtoCommerce.Xapi.Core.Infrastructure.Validation; @@ -90,8 +89,8 @@ public void PostInitialize(IApplicationBuilder appBuilder) // settings var settingsRegistrar = serviceProvider.GetRequiredService(); - settingsRegistrar.RegisterSettings(ModuleConstants.Settings.General.AllSettings, ModuleInfo.Id); - settingsRegistrar.RegisterSettingsForType(ModuleConstants.Settings.StoreLevelSettings, nameof(Store)); + settingsRegistrar.RegisterSettings(Settings.General.AllSettings, ModuleInfo.Id); + settingsRegistrar.RegisterSettingsForType(Settings.StoreLevelSettings, nameof(Store)); } public void Uninstall()