Class ServiceInfoFactory
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
Tagsschemes
IEnumerable<string>
ServiceInfoFactory(Tags, string)
protected ServiceInfoFactory(Tags tags, string scheme)
Parameters
Properties
DefaultUriScheme
public virtual string DefaultUriScheme { get; }
Property Value
ServiceInfoTags
protected Tags ServiceInfoTags { get; set; }
Property Value
UriKeys
protected List<string> UriKeys { get; set; }
Property Value
UriSchemes
protected IEnumerable<string> UriSchemes { get; set; }
Property Value
Methods
Accepts(Service)
Check if this factory can create IServiceInfo from the given binding
public virtual bool Accepts(Service binding)
Parameters
binding
ServiceA 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
ServiceA service binding
Returns
- IServiceInfo
Relevant IServiceInfo
GetAccessTokenUriFromCredentials(Dictionary<string, Credential>)
protected virtual string GetAccessTokenUriFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetBoolFromCredentials(Dictionary<string, Credential>, string)
protected virtual bool GetBoolFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>key
string
Returns
GetClientIdFromCredentials(Dictionary<string, Credential>)
protected virtual string GetClientIdFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetClientSecretFromCredentials(Dictionary<string, Credential>)
protected virtual string GetClientSecretFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetHostFromCredentials(Dictionary<string, Credential>)
protected virtual string GetHostFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
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
GetIntFromCredentials(Dictionary<string, Credential>, string)
protected virtual int GetIntFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>key
string
Returns
GetListFromCredentials(Dictionary<string, Credential>, string)
protected virtual List<string> GetListFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>key
string
Returns
GetPasswordFromCredentials(Dictionary<string, Credential>)
protected virtual string GetPasswordFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetPortFromCredentials(Dictionary<string, Credential>)
protected virtual int GetPortFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
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
GetStringFromCredentials(Dictionary<string, Credential>, string)
protected virtual string GetStringFromCredentials(Dictionary<string, Credential> credentials, string key)
Parameters
credentials
Dictionary<string, Credential>key
string
Returns
GetTlsPortFromCredentials(Dictionary<string, Credential>)
protected virtual int GetTlsPortFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetUriFromCredentials(Dictionary<string, Credential>)
protected virtual string GetUriFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
GetUsernameFromCredentials(Dictionary<string, Credential>)
protected virtual string GetUsernameFromCredentials(Dictionary<string, Credential> credentials)
Parameters
credentials
Dictionary<string, Credential>
Returns
LabelStartsWithTag(Service)
protected virtual bool LabelStartsWithTag(Service binding)
Parameters
binding
Service
Returns
TagsMatch(Service)
protected virtual bool TagsMatch(Service binding)
Parameters
binding
Service
Returns
UriKeyMatchesScheme(Service)
protected virtual bool UriKeyMatchesScheme(Service binding)
Parameters
binding
Service
Returns
UriMatchesScheme(Service)
protected virtual bool UriMatchesScheme(Service binding)
Parameters
binding
Service