AspireKurrentDBExtensions Methods
Class Methods 2 members
Provides extension methods for registering KurrentDB-related services in an
Hosting.IHostApplicationBuilder. AddKeyedKurrentDBClient(IHostApplicationBuilder, string, Action<KurrentDBSettings>) Section titled AddKeyedKurrentDBClient(IHostApplicationBuilder, string, Action<KurrentDBSettings>) extension Registers
Client.KurrentDBClient as a keyed singleton for the given name in the services provided by the builder. public static class AspireKurrentDBExtensions{ public static void AddKeyedKurrentDBClient( this IHostApplicationBuilder builder, string name, Action<KurrentDBSettings>? configureSettings = null) { // ... }}Parameters
builder IHostApplicationBuilder The Hosting.IHostApplicationBuilder to read config from and add services to. name string The connection name to use to find a connection string. configureSettings Action<KurrentDBSettings> optional An optional method that can be used for customizing the KurrentDBSettings. It's invoked after the settings are read from the configuration. AddKurrentDBClient(IHostApplicationBuilder, string, Action<KurrentDBSettings>) Section titled AddKurrentDBClient(IHostApplicationBuilder, string, Action<KurrentDBSettings>) extension Registers
Client.KurrentDBClient as a singleton in the services provided by the builder. public static class AspireKurrentDBExtensions{ public static void AddKurrentDBClient( this IHostApplicationBuilder builder, string connectionName, Action<KurrentDBSettings>? configureSettings = null) { // ... }}Parameters
builder IHostApplicationBuilder The Hosting.IHostApplicationBuilder to read config from and add services to. connectionName string The connection name to use to find a connection string. configureSettings Action<KurrentDBSettings> optional An optional method that can be used for customizing the KurrentDBSettings. It's invoked after the settings are read from the configuration.