Table of Contents

Class ServiceInfoFactory

Namespace
Steeltoe.Connector.Services
Assembly
Steeltoe.Connector.ConnectorBase.dll
public abstract class ServiceInfoFactory : IServiceInfoFactory
Inheritance
ServiceInfoFactory
Implements
Derived
Inherited Members

Constructors

ServiceInfoFactory(Tags, IEnumerable<string>)

protected ServiceInfoFactory(Tags tags, IEnumerable<string> schemes)

Parameters

tags Tags
schemes IEnumerable<string>

ServiceInfoFactory(Tags, string)

protected ServiceInfoFactory(Tags tags, string scheme)

Parameters

tags Tags
scheme string

Properties

DefaultUriScheme

public virtual string DefaultUriScheme { get; }

Property Value

string

ServiceInfoTags

protected Tags ServiceInfoTags { get; set; }

Property Value

Tags

UriKeys

protected List<string> UriKeys { get; set; }

Property Value

List<string>

UriSchemes

protected IEnumerable<string> UriSchemes { get; set; }

Property Value

IEnumerable<string>

Methods

Accepts(Service)

Check if this factory can create IServiceInfo from the given binding

public virtual bool Accepts(Service binding)

Parameters

binding Service

A service binding to evaluate

Returns

bool

Gets a value indicating whether or not the binding is compatible with this factory

Create(Service)

Return service information from a service binding

public abstract IServiceInfo Create(Service binding)

Parameters

binding Service

A service binding

Returns

IServiceInfo

Relevant 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

TagsMatch(Service)

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