Sprog

ConfigurationConnections Class

Definition

A IConfiguration based IConnections.

public class ConfigurationConnections : Microsoft.Agents.Authentication.IConnections
type ConfigurationConnections = class
    interface IConnections
Public Class ConfigurationConnections
Implements IConnections
Inheritance
ConfigurationConnections
Implements

Remarks

The type indicated must have the constructor:(IServiceProvider systemServiceProvider, IConfigurationSection configurationSection). The 'configurationSection' argument is the 'Settings' portion of the connection.

If 'ConnectionsMap' is not specified, the first Connection is used as the default.

Constructors

Name Description
ConfigurationConnections(IDictionary<String,IAccessTokenProvider>, IList<ConnectionMapItem>, ILogger<ConfigurationConnections>)
ConfigurationConnections(IServiceProvider, IConfiguration, String, String)

Methods

Name Description
GetConnection(String)

Gets a connection by name.

GetDefaultConnection()

Gets the default connection.

GetTokenProvider(ClaimsIdentity, IActivity)

Finds a connection based on a map based on Activity.

GetTokenProvider(ClaimsIdentity, String)

Finds a connection based on a map.

TryGetConnection(String, IAccessTokenProvider)

Tries to get a connection by name.

ValidateConfiguration()

Validates connection-map entries without constructing token providers.

Applies to