Class AbstractServiceConnectorOptions
Inheritance
System.Object
AbstractServiceConnectorOptions
Namespace: Steeltoe.Connector
Assembly: Steeltoe.Connector.ConnectorBase.dll
Syntax
public abstract class AbstractServiceConnectorOptions : object
Constructors
| Edit this page View SourceAbstractServiceConnectorOptions()
Declaration
protected AbstractServiceConnectorOptions()
AbstractServiceConnectorOptions(IConfiguration, Char, Char)
Declaration
public AbstractServiceConnectorOptions(IConfiguration config, char terminator = null, char separator = null)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | config | |
System.Char | terminator | |
System.Char | separator |
AbstractServiceConnectorOptions(Char, Char)
Declaration
protected AbstractServiceConnectorOptions(char keyValueTerm, char keyValueSep)
Parameters
Type | Name | Description |
---|---|---|
System.Char | keyValueTerm | |
System.Char | keyValueSep |
Fields
| Edit this page View SourceDefault_Separator
Declaration
protected const char Default_Separator = null
Field Value
Type | Description |
---|---|
System.Char |
Default_Terminator
Declaration
protected const char Default_Terminator = null
Field Value
Type | Description |
---|---|
System.Char |
Methods
| Edit this page View SourceAddColonDelimitedPair(StringBuilder, String, String, Nullable<Char>)
Add colon delimited pairs like user:password or host:port to a
Declaration
protected void AddColonDelimitedPair(StringBuilder sb, string part1, string part2, char? terminator = null)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb | Your stringbuilder |
System.String | part1 | First item in the pair |
System.String | part2 | Second item in the pair |
System.Nullable<System.Char> | terminator | Character to denote the end of the pair |
Remarks
Only adds colon if second item is NOT null or empty
AddKeyValue(StringBuilder, String, Nullable<Boolean>)
Declaration
protected void AddKeyValue(StringBuilder sb, string key, bool? value)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb | |
System.String | key | |
System.Nullable<System.Boolean> | value |
AddKeyValue(StringBuilder, String, Nullable<Int32>)
Declaration
protected void AddKeyValue(StringBuilder sb, string key, int? value)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb | |
System.String | key | |
System.Nullable<System.Int32> | value |
AddKeyValue(StringBuilder, String, String)
Add a Key/Value pair to a
Declaration
protected void AddKeyValue(StringBuilder sb, string key, string value)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb | Your stringbuilder |
System.String | key | Identifier for the value to be added |
System.String | value | Value to be added |