Class AbstractServiceConnectorOptions
- Namespace
- Steeltoe.CloudFoundry.Connector
- Assembly
- Steeltoe.CloudFoundry.ConnectorBase.dll
public abstract class AbstractServiceConnectorOptions
- Inheritance
-
AbstractServiceConnectorOptions
- Derived
- Inherited Members
Constructors
AbstractServiceConnectorOptions()
protected AbstractServiceConnectorOptions()
AbstractServiceConnectorOptions(IConfiguration, char, char)
public AbstractServiceConnectorOptions(IConfiguration config, char terminator = ';', char separator = '=')
Parameters
configIConfigurationterminatorcharseparatorchar
AbstractServiceConnectorOptions(char, char)
protected AbstractServiceConnectorOptions(char keyValueTerm, char keyValueSep)
Parameters
Fields
Default_Separator
protected const char Default_Separator = '='
Field Value
Default_Terminator
protected const char Default_Terminator = ';'
Field Value
Methods
AddColonDelimitedPair(StringBuilder, string, string, char?)
Add colon delimited pairs like user:password or host:port to a StringBuilder
protected void AddColonDelimitedPair(StringBuilder sb, string part1, string part2, char? terminator = null)
Parameters
sbStringBuilderYour stringbuilder
part1stringFirst item in the pair
part2stringSecond item in the pair
terminatorchar?Character to denote the end of the pair
Remarks
Only adds colon if second item is NOT null or empty
AddKeyValue(StringBuilder, string, bool?)
protected void AddKeyValue(StringBuilder sb, string key, bool? value)
Parameters
sbStringBuilderkeystringvaluebool?
AddKeyValue(StringBuilder, string, int?)
protected void AddKeyValue(StringBuilder sb, string key, int? value)
Parameters
sbStringBuilderkeystringvalueint?
AddKeyValue(StringBuilder, string, string)
Add a Key/Value pair to a StringBuilder if the value isn't null or empty
protected void AddKeyValue(StringBuilder sb, string key, string value)
Parameters
sbStringBuilderYour stringbuilder
keystringIdentifier for the value to be added
valuestringValue to be added