Interface IConnectionInfo
Namespace: Steeltoe.Connector
Assembly: Steeltoe.Connector.Abstractions.dll
Syntax
public interface IConnectionInfo
Methods
| Edit this page View SourceGet(IConfiguration, IServiceInfo)
Get connection information from configuration after a service info has been discovered
Declaration
Connection Get(IConfiguration configuration, IServiceInfo serviceInfo)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | configuration | |
IServiceInfo | serviceInfo |
Returns
Type | Description |
---|---|
Connection | Connection information |
Get(IConfiguration, String)
Get connection information from configuration for a named service
Declaration
Connection Get(IConfiguration configuration, string serviceName)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | configuration | |
System.String | serviceName | The name of the service to retrieve |
Returns
Type | Description |
---|---|
Connection | Connection information |
IsSameType(IServiceInfo)
Determines if this IConnectionInfo is compatible with a service info
Declaration
bool IsSameType(IServiceInfo serviceInfo)
Parameters
Type | Name | Description |
---|---|---|
IServiceInfo | serviceInfo | The service info to match |
Returns
Type | Description |
---|---|
System.Boolean | True when this type is compatible |
IsSameType(String)
Determines if this IConnectionInfo is compatible with a service type name
Declaration
bool IsSameType(string serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceType | The name of a service type to match |
Returns
Type | Description |
---|---|
System.Boolean | True when this type is compatible |