githubEdit

MySQL Inbox

Usage

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

  • Paramore.Brighter.Inbox.MySql

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,  "brighter_test", inboxTableName: "inbox_messages");            
            opt.InboxConfiguration = new InboxConfiguration(new MySqlInbox(configuration));
            ...
        });
}
...

Last updated

Was this helpful?