Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

Navigation (EnterpriseLibrary)



Search the wiki
»

ConnectionStringService_v4

RSS
Modified on Monday, 04 November 2013 01:18 PM by 156.75.200.109 Categorized as Uncategorized
Interface for the Connection String Service and corresponding facade.

Table of Contents [Hide/Show]


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

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.