Class ConnectionStringManager
Useful for getting connection information from
Inheritance
System.Object
ConnectionStringManager
Namespace: Steeltoe.Connector
Assembly: Steeltoe.Connector.ConnectorBase.dll
Syntax
public class ConnectionStringManager : object
Constructors
| Edit this page View SourceConnectionStringManager(IConfiguration)
Declaration
public ConnectionStringManager(IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | configuration |
Methods
| Edit this page View SourceGet<T>(String)
Get connection information of the specified type, optionally from a named service binding
Declaration
public Connection Get<T>(string serviceName = null)
where T : IConnectionInfo, new()
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceName | The name of a service binding |
Returns
Type | Description |
---|---|
Connection |
Type Parameters
Name | Description |
---|---|
T | The type of IConnectionInfo to get |