githubEdit

Postgres Inbox

Usage

The Postgres Inbox allows use of Postgres 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 Postgres Inbox.

  • Paramore.Brighter.Inbox.Postgres

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 config = new RelationalDatabaseConfiguration(connectionString, "brightertests", inboxTableName: "inboxmessages");
            opt.InboxConfiguration = new InboxConfiguration(new PostgreSqlInbox(config));
            ...
        });
}

...

Last updated

Was this helpful?