Interface for the Connection String Service and corresponding facade.
GetConnectionString
Returns the connection string for the specified connection alias.
Signature
string GetConnectionString(string connectionLabel);
string GetConnectionString(string connectionLabel, string userName, string password);
net.tcp example
var connectionString = ChannelProvider<IConnectionStringService>.Default.GetConnectionString("FEL_EXAMPLE_U");
or
var connectionString = ChannelProvider<IConnectionStringService>.Default.GetConnectionString("FEL_EXAMPLE_U", "username", "password");
REST example
The connection string service does not provide a REST endpoint for security reasons.
GetConnectionToken
Returns a connection token for the specified connection alias.
Signature
string GetConnectionToken(string connectionLabel);
net.tcp example
var connectionString = ChannelProvider<IConnectionStringService>.Default.GetConnectionToken("FEL_EXAMPLE_U");
REST example
The connection string service does not provide a REST endpoint for security reasons.
See Also