Skip to content

Commit

Permalink
VCST-2241: add scoped schema (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev authored Dec 9, 2024
1 parent 2c56440 commit 354d561
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.809.0" />
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.815.0" />
<PackageReference Include="VirtoCommerce.XOrder.Core" Version="3.806.0" />
<PackageReference Include="VirtoCommerce.Platform.Security" Version="3.861.0" />
<PackageReference Include="VirtoCommerce.CustomerModule.Core" Version="3.817.0" />
Expand Down
4 changes: 4 additions & 0 deletions src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public void Initialize(IServiceCollection serviceCollection)
serviceCollection.AddAutoMapper(assemblyMarker);
serviceCollection.AddSchemaBuilders(assemblyMarker);

serviceCollection.AddSingleton<ScopedSchemaFactory<AssemblyMarker>>();

serviceCollection.AddSingleton<IMemberAggregateFactory, MemberAggregateFactory>();
serviceCollection.AddTransient<NewContactValidator>();
serviceCollection.AddTransient<AccountValidator>();
Expand Down Expand Up @@ -78,6 +80,8 @@ public void PostInitialize(IApplicationBuilder appBuilder)
{
var permissionsRegistrar = appBuilder.ApplicationServices.GetRequiredService<IPermissionsRegistrar>();
permissionsRegistrar.RegisterPermissions(ModuleInfo.Id, "XAPI", ModuleConstants.Security.Permissions.AllPermissions);

appBuilder.UseScopedSchema<AssemblyMarker>("profile");
}

public void Uninstall()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency id="VirtoCommerce.Notifications" version="3.809.0" />
<dependency id="VirtoCommerce.Pricing" version="3.809.0" optional="true" />
<dependency id="VirtoCommerce.Tax" version="3.802.0" />
<dependency id="VirtoCommerce.Xapi" version="3.809.0" />
<dependency id="VirtoCommerce.Xapi" version="3.815.0" />
<dependency id="VirtoCommerce.XOrder" version="3.806.0" optional="true" />
</dependencies>

Expand Down

0 comments on commit 354d561

Please sign in to comment.