diff --git a/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj b/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj index fa99a348..02a7ec89 100644 --- a/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj +++ b/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj @@ -19,7 +19,7 @@ - + diff --git a/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs b/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs index 380f8267..5d0c4c31 100644 --- a/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs +++ b/src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs @@ -40,6 +40,8 @@ public void Initialize(IServiceCollection serviceCollection) serviceCollection.AddAutoMapper(assemblyMarker); serviceCollection.AddSchemaBuilders(assemblyMarker); + serviceCollection.AddSingleton>(); + serviceCollection.AddSingleton(); serviceCollection.AddTransient(); serviceCollection.AddTransient(); @@ -78,6 +80,8 @@ public void PostInitialize(IApplicationBuilder appBuilder) { var permissionsRegistrar = appBuilder.ApplicationServices.GetRequiredService(); permissionsRegistrar.RegisterPermissions(ModuleInfo.Id, "XAPI", ModuleConstants.Security.Permissions.AllPermissions); + + appBuilder.UseScopedSchema("profile"); } public void Uninstall() diff --git a/src/VirtoCommerce.ProfileExperienceApiModule.Web/module.manifest b/src/VirtoCommerce.ProfileExperienceApiModule.Web/module.manifest index a702a858..49159a20 100644 --- a/src/VirtoCommerce.ProfileExperienceApiModule.Web/module.manifest +++ b/src/VirtoCommerce.ProfileExperienceApiModule.Web/module.manifest @@ -12,7 +12,7 @@ - +