C# Class Burrow.ConnectionString

Parses a connection string for the values required to connect to a RabbitMQ broker instance. Connection string should look something like this: host=192.168.1.1;port=5672;virtualHost=MyVirtualHost;username=MyUsername;password=MyPassword
Exibir arquivo Open project: vanthoainguyen/Burrow.NET Class Usage Examples

Public Methods

Method Description
ConnectionString ( string connectionStringValue ) : System

Create a ConnectionString object by a string value

GetValue ( string key ) : string

Get value of a key from the connection string

GetValue ( string key, string defaultValue ) : string

Get value of a key from the connection string, return default value if the key is not set or the key value is null or empty

Method Details

ConnectionString() public method

Create a ConnectionString object by a string value
public ConnectionString ( string connectionStringValue ) : System
connectionStringValue string
return System

GetValue() public method

Get value of a key from the connection string
public GetValue ( string key ) : string
key string
return string

GetValue() public method

Get value of a key from the connection string, return default value if the key is not set or the key value is null or empty
public GetValue ( string key, string defaultValue ) : string
key string
defaultValue string
return string