示例#1
0
 public Task <IList <Uri> > GetGateways()
 {
     if (logger.IsVerbose3)
     {
         logger.Verbose3("SqlMembershipTable.GetGateways called.");
     }
     try
     {
         var query = queryConstants.GetConstant(database.InvariantName, QueryKeys.ActiveGatewaysQuery);
         return(database.ActiveGatewaysAsync(query, deploymentId));
     }
     catch (Exception ex)
     {
         if (logger.IsVerbose)
         {
             logger.Verbose("SqlMembershipTable.Gateways failed {0}", ex);
         }
         throw;
     }
 }
示例#2
0
 public IList <Uri> GetGateways()
 {
     if (logger.IsVerbose3)
     {
         logger.Verbose3("SqlMembershipTable.GetGateways called.");
     }
     try
     {
         //TODO: Refactor this to async.
         return(database.ActiveGatewaysAsync(deploymentId).Result);
     }
     catch (Exception ex)
     {
         if (logger.IsVerbose)
         {
             logger.Verbose("SqlMembershipTable.Gateways failed {0}", ex);
         }
         throw;
     }
 }