Class ServiceInfoFactory
- Namespace
- Steeltoe.CloudFoundry.Connector.Services
- Assembly
- Steeltoe.CloudFoundry.ConnectorBase.dll
public abstract class ServiceInfoFactory
- Inheritance
-
ServiceInfoFactory
- Derived
-
- Inherited Members
-
Constructors
public ServiceInfoFactory(Tags tags, string scheme)
Parameters
tags
Tags
scheme
string
public ServiceInfoFactory(Tags tags, string[] schemes)
Parameters
tags
Tags
schemes
string[]
Properties
DefaultUriScheme
public virtual string DefaultUriScheme { get; }
Property Value
- string
protected Tags ServiceInfoTags { get; set; }
Property Value
- Tags
UriKeys
protected List<string> UriKeys { get; set; }
Property Value
- List<string>
UriSchemes
protected string[] UriSchemes { get; set; }
Property Value
- string[]
Methods
Accept(Service)
public virtual bool Accept(Service binding)
Parameters
binding
Service
Returns
- bool
Create(Service)
public abstract IServiceInfo Create(Service binding)
Parameters
binding
Service
Returns
- IServiceInfo
GetAccessTokenUriFromCredentials(Dictionary<string, Credential>)
protected virtual string GetAccessTokenUriFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetBoolFromCredentials(Dictionary<string, Credential>, string)
protected virtual bool GetBoolFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>
key
string
Returns
- bool
GetClientIdFromCredentials(Dictionary<string, Credential>)
protected virtual string GetClientIdFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetClientSecretFromCredentials(Dictionary<string, Credential>)
protected virtual string GetClientSecretFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetHostFromCredentials(Dictionary<string, Credential>)
protected virtual string GetHostFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetIntFromCredentials(Dictionary<string, Credential>, List<string>)
protected virtual int GetIntFromCredentials(Dictionary<string, Credential> credentials, List<string> keys)
Parameters
credentials
Dictionary<string, Credential>
keys
List<string>
Returns
- int
GetIntFromCredentials(Dictionary<string, Credential>, string)
protected virtual int GetIntFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>
key
string
Returns
- int
GetListFromCredentials(Dictionary<string, Credential>, string)
protected virtual List<string> GetListFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>
key
string
Returns
- List<string>
GetPasswordFromCredentials(Dictionary<string, Credential>)
protected virtual string GetPasswordFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetPortFromCredentials(Dictionary<string, Credential>)
protected virtual int GetPortFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- int
GetStringFromCredentials(Dictionary<string, Credential>, List<string>)
protected virtual string GetStringFromCredentials(Dictionary<string, Credential> credentials, List<string> keys)
Parameters
credentials
Dictionary<string, Credential>
keys
List<string>
Returns
- string
GetStringFromCredentials(Dictionary<string, Credential>, string)
protected virtual string GetStringFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>
key
string
Returns
- string
GetTlsPortFromCredentials(Dictionary<string, Credential>)
protected virtual int GetTlsPortFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- int
GetUriFromCredentials(Dictionary<string, Credential>)
protected virtual string GetUriFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
GetUsernameFromCredentials(Dictionary<string, Credential>)
protected virtual string GetUsernameFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
- string
LabelStartsWithTag(Service)
protected virtual bool LabelStartsWithTag(Service binding)
Parameters
binding
Service
Returns
- bool
protected virtual bool TagsMatch(Service binding)
Parameters
binding
Service
Returns
- bool
UriKeyMatchesScheme(Service)
protected virtual bool UriKeyMatchesScheme(Service binding)
Parameters
binding
Service
Returns
- bool
UriMatchesScheme(Service)
protected virtual bool UriMatchesScheme(Service binding)
Parameters
binding
Service
Returns
- bool