Table of Contents

Class ConnectionStringManager

Namespace
Steeltoe.Connector
Assembly
Steeltoe.Connector.ConnectorBase.dll

Useful for getting connection information from IConfiguration

public class ConnectionStringManager
Inheritance
ConnectionStringManager
Inherited Members

Constructors

ConnectionStringManager(IConfiguration)

public ConnectionStringManager(IConfiguration configuration)

Parameters

configuration IConfiguration

Methods

Get<T>(string)

Get connection information of the specified type, optionally from a named service binding

public Connection Get<T>(string serviceName = null) where T : IConnectionInfo, new()

Parameters

serviceName string

The name of a service binding

Returns

Connection

Connection

Type Parameters

T

The type of IConnectionInfo to get