예제 #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);
 }
예제 #2
0
 public IBaseMessage Execute(IPipelineContext context, IBaseMessage msg, string resolverString, IItineraryStep step)
 {
     Logger.WriteTrace(string.Format("******{0} Started******", this.GetType().Name));
     try
     {
         string ticket = new SsoTicketProvider().IssueTicket();
         msg.Context.Write("SSOTicket", "http://schemas.microsoft.com/BizTalk/2003/system-properties", ticket);
     }
     catch (Exception ex)
     {
         Logger.WriteTrace(string.Format("Error occured in {0} \r\n Details: {1}", this.GetType().Name, ex.ToString()));
         throw ex;
     }
     Logger.WriteTrace(string.Format("******{0} Completed******", this.GetType().Name));
     return(msg);
 }