AspireQdrantExtensions Methods
ClassMethods2 members
Provides extension methods for registering Qdrant-related services in an
Hosting.IHostApplicationBuilder . AddKeyedQdrantClient(IHostApplicationBuilder, string, Action<QdrantClientSettings>) Section titled AddKeyedQdrantClient(IHostApplicationBuilder, string, Action<QdrantClientSettings>)extension Registers
Client.QdrantClient as a keyed singleton for the given name in the services provided by the builder. Configures logging for the Client.QdrantClient . public static class AspireQdrantExtensions{ public static void AddKeyedQdrantClient( this IHostApplicationBuilder builder, string name, Action<QdrantClientSettings>? 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<QdrantClientSettings> optionalAn optional method that can be used for customizing the QdrantClientSettings . It's invoked after the settings are read from the configuration.Exceptions
InvalidOperationExceptionIf required ConnectionString is not provided in configuration sectionRemarks
Reads the configuration from "Aspire:Qdrant:Client" section.
AddQdrantClient(IHostApplicationBuilder, string, Action<QdrantClientSettings>) Section titled AddQdrantClient(IHostApplicationBuilder, string, Action<QdrantClientSettings>)extension Registers
Client.QdrantClient as a singleton in the services provided by the builder. Configures logging for the Client.QdrantClient . public static class AspireQdrantExtensions{ public static void AddQdrantClient( this IHostApplicationBuilder builder, string connectionName, Action<QdrantClientSettings>? 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<QdrantClientSettings> optionalAn optional method that can be used for customizing the QdrantClientSettings . It's invoked after the settings are read from the configuration.Exceptions
InvalidOperationExceptionIf required ConnectionString is not provided in configuration sectionRemarks
Reads the configuration from "Aspire:Qdrant:Client" section.