AspireChromaExtensions Methods
ClassMethods2 members
Provides extension methods for registering ChromaDB-related services.
AddChromaClient(IHostApplicationBuilder, string, Action<ChromaClientSettings>) Section titled AddChromaClient(IHostApplicationBuilder, string, Action<ChromaClientSettings>)extension Registers
Client.ChromaClient as a singleton in the services collection. public static class AspireChromaExtensions{ public static void AddChromaClient( this IHostApplicationBuilder builder, string connectionName, Action<ChromaClientSettings>? configureSettings = null) { // ... }}Parameters
builderIHostApplicationBuilder The Hosting.IHostApplicationBuilder to read config from and add services to.connectionName stringThe connection name to use to find a connection string.configureSettings Action<ChromaClientSettings> optionalAn optional method that can be used for customizing the ChromaClientSettings . It's invoked after the settings are read from the configuration.AddKeyedChromaClient(IHostApplicationBuilder, string, Action<ChromaClientSettings>) Section titled AddKeyedChromaClient(IHostApplicationBuilder, string, Action<ChromaClientSettings>)extension Registers
Client.ChromaClient as a keyed singleton in the services collection. public static class AspireChromaExtensions{ public static void AddKeyedChromaClient( this IHostApplicationBuilder builder, string name, Action<ChromaClientSettings>? configureSettings = null) { // ... }}Parameters
builderIHostApplicationBuilder The Hosting.IHostApplicationBuilder to read config from and add services to.namestringThe connection name to use to find a connection string.configureSettings Action<ChromaClientSettings> optionalAn optional method that can be used for customizing the ChromaClientSettings . It's invoked after the settings are read from the configuration.