From 38cfe763ec82d7890dbcb30c7f4deeded3077e18 Mon Sep 17 00:00:00 2001 From: Konstantin Savosteev Date: Mon, 6 Jan 2025 16:50:16 +0200 Subject: [PATCH] feat: enable schema --- src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs b/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs index 2a153f7c..c67cbfe0 100644 --- a/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs +++ b/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs @@ -21,6 +21,7 @@ using VirtoCommerce.ProfileExperienceApiModule.Data.Validators; using VirtoCommerce.TaxModule.Core.Model; using VirtoCommerce.Xapi.Core.Extensions; +using VirtoCommerce.Xapi.Core.Infrastructure; using VirtoCommerce.Xapi.Core.Pipelines; namespace VirtoCommerce.ProfileExperienceApiModule.Web @@ -37,8 +38,7 @@ public void Initialize(IServiceCollection serviceCollection) builder.AddSchema(serviceCollection, typeof(AssemblyMarker)); }); - // disable scoped schema - //serviceCollection.AddSingleton>(); + serviceCollection.AddSingleton>(); serviceCollection.AddSingleton(); serviceCollection.AddTransient(); @@ -79,8 +79,7 @@ public void PostInitialize(IApplicationBuilder appBuilder) var permissionsRegistrar = appBuilder.ApplicationServices.GetRequiredService(); permissionsRegistrar.RegisterPermissions(ModuleInfo.Id, "XAPI", ModuleConstants.Security.Permissions.AllPermissions); - // disable scoped schema - //appBuilder.UseScopedSchema("profile"); + appBuilder.UseScopedSchema("profile"); } public void Uninstall()