For the complete documentation index, see llms.txt. This page is also available as Markdown.

Azure Archive Provider Configuration

Usage

The Azure Blob Archive Provider is a provider for Outbox Archiver.

For this we will need the Archive packages for the Azure Archive Provider.

  • Paramore.Brighter.Archive.Azure

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

private static void ConfigureBrighter(HostBuilderContext hostContext, IServiceCollection services)
{
    services.AddBrighter(options =>
        { ...  })
        .UseOutboxArchiver(
            new AzureBlobArchiveProvider(new AzureBlobArchiveProviderOptions()
                {
                    BlobContainerUri = "https://brighterarchivertest.blob.core.windows.net/messagearchive",
                    TokenCredential = New AzCliCredential();
                }
            ),
            options => {
                TimerInterval = 5; // Every 5 seconds
                BatchSize  = 500; // 500 messages at a time
                MinimumAge = 744; // 1 month
            }
        );
}

...

Last updated

Was this helpful?