Interface IRedbOptionsBuilderInfrastructure

Assembly: redb.Core.dll

Infrastructure interface for database providers and Pro extensions.
Similar to EF Core's IDbContextOptionsBuilderInfrastructure.
Used by UsePostgres(), UseMsSql(), AddRedbPro(), etc.

public interface IRedbOptionsBuilderInfrastructure

Properties

Configuration

Configuration instance to be populated by provider.

RedbServiceConfiguration Configuration { get; }

IsPro

Whether Pro version is being configured.

bool IsPro { get; set; }

LicenseKey

License key for Pro features (JWT token).

string? LicenseKey { get; set; }

Services

Service collection for registering services.

IServiceCollection Services { get; }

Methods

Build()

Finalize configuration and register all services.

void Build()

SetProviderRegistration(Action<IServiceCollection, RedbServiceConfiguration, bool>)

Register provider-specific services.

void SetProviderRegistration(Action<IServiceCollection, RedbServiceConfiguration, bool> registration)