Table of Contents

Class AbstractServiceConnectorOptions

Namespace
Steeltoe.Connector
Assembly
Steeltoe.Connector.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

config IConfiguration
terminator char
separator char

AbstractServiceConnectorOptions(char, char)

protected AbstractServiceConnectorOptions(char keyValueTerm, char keyValueSep)

Parameters

keyValueTerm char
keyValueSep char

Fields

Default_Separator

protected const char Default_Separator = '='

Field Value

char

Default_Terminator

protected const char Default_Terminator = ';'

Field Value

char

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

sb StringBuilder

Your stringbuilder

part1 string

First item in the pair

part2 string

Second item in the pair

terminator char?

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

sb StringBuilder
key string
value bool?

AddKeyValue(StringBuilder, string, int?)

protected void AddKeyValue(StringBuilder sb, string key, int? value)

Parameters

sb StringBuilder
key string
value int?

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

sb StringBuilder

Your stringbuilder

key string

Identifier for the value to be added

value string

Value to be added