예제 #1
0
 /// <summary>
 /// Gets the connection string that will be used to connect to the service. The affiliate application is looked
 /// up in SSO to get a set of login credentials and the credentials are substituted into the connection
 /// string template.
 /// </summary>
 private void GetConnectionString()
 {
     if (!String.IsNullOrEmpty(_affiliateApplication))
     {
         string userId   = "";
         string password = SsoTicketProvider.LookupCredentials(_affiliateApplication, out userId);
         _userId   = userId;
         _password = password;
     }
     _connectionString = String.Format(_connectionTemplate, _userId, _password);
 }