Skip to content

Integrate Settings Client Module

A client module is provided to integrate settings features within your bounded context. Each bounded context will store its settings in a redis store and will contribute with them when necessary.

Add the following reference to your BFF application project:

XML
<ProjectReference Include="$(ServicesPath)Settings/ITsynch.Suite.Settings.ClientModule/ITsynch.Suite.Settings.ClientModule.csproj" />

And add the dependency in the application module.

C#
public class AdminCenterApplicationModule : SuiteAspNetApplicationModule
{
    public override void SetupModule(IModuleBuilder builder)
    {
        base.SetupModule(builder);

        builder.DependsOn<SettingsClientModule, SettingsClientModuleOptions>(
            opts => opts.SetDbContext<AdminCenterDbContext>());
    }
}