FdbAspireComponentExtensions

Namespace: Microsoft.Extensions.Hosting · class

Provides extension methods for registering FoundationDB-related services in an IHostApplicationBuilder.

Methods

AddFoundationDb

static IHostApplicationBuilder AddFoundationDb(IHostApplicationBuilder builder, string connectionName, Action<FdbClientSettings> configureSettings = null, Action<FdbDatabaseProviderOptions> configureProvider = null)

Add support for connecting to a FoundationDB cluster

  • builder — The IHostApplicationBuilder to read config from and add services to.
  • connectionName — Name of the FoundationDB cluster or connection resource, as defined in the Aspire AppHost.
  • configureSettings — An optional method that can be used for customizing the FdbClientSettings. It's invoked after the settings are read from the configuration.
  • configureProvider — An optional method that can be used for customizing the FdbDatabaseProviderOptions. It's invoked after the options are read from the configuration.

Reads the configuration from "Aspire:FoundationDb:Client" section.