Language

OrchestratedClient Constructors

Definition

Overloads

Name Description
OrchestratedClient(ConnectionSettings, IHttpClientFactory, ILogger, String)

Creates an ExternalOrchestration client for Microsoft Copilot Studio hosted agents.

OrchestratedClient(ConnectionSettings, IHttpClientFactory, Func<String,Task<String>>, ILogger, String)

Creates an ExternalOrchestration client with an external token provider. This is intended for internal use.

OrchestratedClient(ConnectionSettings, IHttpClientFactory, ILogger, String)

Creates an ExternalOrchestration client for Microsoft Copilot Studio hosted agents.

public OrchestratedClient(Microsoft.Agents.CopilotStudio.Client.ConnectionSettings settings, System.Net.Http.IHttpClientFactory httpClientFactory, Microsoft.Extensions.Logging.ILogger logger, string httpClientName = "orchestrated");
new Microsoft.Agents.CopilotStudio.Client.OrchestratedClient : Microsoft.Agents.CopilotStudio.Client.ConnectionSettings * System.Net.Http.IHttpClientFactory * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Agents.CopilotStudio.Client.OrchestratedClient
Public Sub New (settings As ConnectionSettings, httpClientFactory As IHttpClientFactory, logger As ILogger, Optional httpClientName As String = "orchestrated")

Parameters

settings
ConnectionSettings

Configuration settings for connecting to Copilot Studio.

httpClientFactory
IHttpClientFactory

HTTP client factory to use when connecting.

logger
ILogger

Logger for ExternalOrchestration operations.

httpClientName
String

Named HTTP client to use from the factory.

Applies to

OrchestratedClient(ConnectionSettings, IHttpClientFactory, Func<String,Task<String>>, ILogger, String)

Creates an ExternalOrchestration client with an external token provider. This is intended for internal use.

public OrchestratedClient(Microsoft.Agents.CopilotStudio.Client.ConnectionSettings settings, System.Net.Http.IHttpClientFactory httpClientFactory, Func<string,System.Threading.Tasks.Task<string>> tokenProviderFunction, Microsoft.Extensions.Logging.ILogger logger, string httpClientName);
new Microsoft.Agents.CopilotStudio.Client.OrchestratedClient : Microsoft.Agents.CopilotStudio.Client.ConnectionSettings * System.Net.Http.IHttpClientFactory * Func<string, System.Threading.Tasks.Task<string>> * Microsoft.Extensions.Logging.ILogger * string -> Microsoft.Agents.CopilotStudio.Client.OrchestratedClient
Public Sub New (settings As ConnectionSettings, httpClientFactory As IHttpClientFactory, tokenProviderFunction As Func(Of String, Task(Of String)), logger As ILogger, httpClientName As String)

Parameters

settings
ConnectionSettings

Configuration settings for connecting to Copilot Studio.

httpClientFactory
IHttpClientFactory

HTTP client factory to use when connecting.

tokenProviderFunction
Func<String,Task<String>>

Async function that accepts a scope URL and returns an access token.

logger
ILogger

Logger for ExternalOrchestration operations.

httpClientName
String

Named HTTP client to use from the factory.

Applies to