FdbDatabaseServiceCollectionExtensions

Namespace: FoundationDB.DependencyInjection · class

Extension methods for registering a IFdbDatabaseProvider service

Methods

AddFoundationDb

static IFdbDatabaseProviderBuilder AddFoundationDb(IServiceCollection services, Action<FdbDatabaseProviderOptions> configure)

Add a FoundationDB database provider to the list of services

  • services — Service collection
  • configure — Callback used to configure the database provider options

Returns: FoundationDB database provider builder

static IFdbDatabaseProviderBuilder AddFoundationDb(IServiceCollection services, int apiVersion, Action<FdbDatabaseProviderOptions> configure = null)

Add a FoundationDB database provider to the list of services

  • services — Service collection
  • apiVersion — Selected API version level
  • configure — Optional callback used to configure the database provider options

Returns: FoundationDB database provider builder

static IFdbDatabaseProviderBuilder AddFoundationDb(IServiceCollection services, int apiVersion, string clusterFile, Action<FdbDatabaseProviderOptions> configure = null)

Add a FoundationDB database provider to the list of services

  • services — Service collection
  • apiVersion — Selected API version level
  • clusterFile — Path to the cluster file, or null to use the system default location
  • configure — Optional callback used to configure the database provider options

Returns: FoundationDB database provider builder