KnowledgeBaseRetrievalClientHostExtensions.AddKnowledgeBaseRetrievalClient Method
Definition
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.
Overloads
| Name | Description |
|---|---|
| AddKnowledgeBaseRetrievalClient(IHostApplicationBuilder, String) |
Adds a singleton KnowledgeBaseRetrievalClient to the IHostApplicationBuilder's service collection. |
| AddKnowledgeBaseRetrievalClient(IHostApplicationBuilder, String, Action<KnowledgeBaseRetrievalClientSettings>) |
Adds a singleton KnowledgeBaseRetrievalClient to the IHostApplicationBuilder's service collection. |
AddKnowledgeBaseRetrievalClient(IHostApplicationBuilder, String)
Adds a singleton KnowledgeBaseRetrievalClient to the IHostApplicationBuilder's service collection.
public static System.ClientModel.Primitives.IClientBuilder AddKnowledgeBaseRetrievalClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName);
static member AddKnowledgeBaseRetrievalClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKnowledgeBaseRetrievalClient (host As IHostApplicationBuilder, sectionName As String) As IClientBuilder
Parameters
The IHostApplicationBuilder to add to.
- sectionName
- String
The section of IConfiguration to use.
Returns
An IClientBuilder that can be used to further configure the client.
Applies to
AddKnowledgeBaseRetrievalClient(IHostApplicationBuilder, String, Action<KnowledgeBaseRetrievalClientSettings>)
Adds a singleton KnowledgeBaseRetrievalClient to the IHostApplicationBuilder's service collection.
public static System.ClientModel.Primitives.IClientBuilder AddKnowledgeBaseRetrievalClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string sectionName, Action<Azure.Search.Documents.KnowledgeBases.KnowledgeBaseRetrievalClientSettings> configureSettings);
static member AddKnowledgeBaseRetrievalClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Action<Azure.Search.Documents.KnowledgeBases.KnowledgeBaseRetrievalClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKnowledgeBaseRetrievalClient (host As IHostApplicationBuilder, sectionName As String, configureSettings As Action(Of KnowledgeBaseRetrievalClientSettings)) As IClientBuilder
Parameters
The IHostApplicationBuilder to add to.
- sectionName
- String
The section of IConfiguration to use.
- configureSettings
- Action<KnowledgeBaseRetrievalClientSettings>
Factory method to modify the KnowledgeBaseRetrievalClientSettings after they are created.
Returns
An IClientBuilder that can be used to further configure the client.