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 collectionconfigure— 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 collectionapiVersion— Selected API version levelconfigure— 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 collectionapiVersion— Selected API version levelclusterFile— Path to the cluster file, ornullto use the system default locationconfigure— Optional callback used to configure the database provider options
Returns: FoundationDB database provider builder