AspireQdrantExtensions.AddKeyedQdrantClient Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers Qdrant.Client.QdrantClient as a keyed singleton for the given name
in the services provided by the builder
.
Configures logging for the Qdrant.Client.QdrantClient.
public static void AddKeyedQdrantClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string name, Action<Aspire.Qdrant.Client.QdrantClientSettings>? configureSettings = default);
static member AddKeyedQdrantClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Action<Aspire.Qdrant.Client.QdrantClientSettings> -> unit
<Extension()>
Public Sub AddKeyedQdrantClient (builder As IHostApplicationBuilder, name As String, Optional configureSettings As Action(Of QdrantClientSettings) = Nothing)
- builder
- IHostApplicationBuilder
The IHostApplicationBuilder to read config from and add services to.
- name
- String
The connection name to use to find a connection string.
- configureSettings
- Action<QdrantClientSettings>
An optional method that can be used for customizing the QdrantClientSettings. It's invoked after the settings are read from the configuration.
If required ConnectionString is not provided in configuration section
Reads the configuration from "Aspire:Qdrant:Client" section.
Producto | Versiones |
---|---|
.NET Aspire | 8.0.0, 9.0.0, 9.1.0 |