githubEdit

MSSQL Inbox

Usage

The MSSQL Inbox allows use of MSSQL for Brighter's inbox supportarrow-up-right. The configuration is described in Basic Configurationarrow-up-right.

For this we will need the Inbox packages for the MsSQL Inbox.

  • Paramore.Brighter.Inbox.MsSql

private static IHostBuilder CreateHostBuilder(string[] args) =>
    Host.CreateDefaultBuilder(args)
        .ConfigureServices(hostContext, services) =>
        {
            ConfigureBrighter(hostContext, services);
        }

private static void ConfigureBrighter(HostBuilderContext hostContext, IServiceCollection services)
{
    services.AddConsumers(options =>
        {
            var configuration = new RelationalDatabaseConfiguration(connectionString, "BrighterTests", inboxTableName: "InboxMessages");
            opt.Inbox = new InboxConfiguration(new MsSqlInbox(configuration));
            ...
        });
}

...

Last updated

Was this helpful?