Пример #1
0
 Task <MembershipTableData> IMembershipTable.ReadRow(SiloAddress key)
 {
     if (logger.IsVerbose3)
     {
         logger.Verbose3(string.Format("SqlMembershipTable.ReadRow called with key: {0}.", key));
     }
     try
     {
         return(database.MembershipDataAsync(deploymentId, key));
     }
     catch (Exception ex)
     {
         if (logger.IsVerbose)
         {
             logger.Verbose("SqlMembershipTable.ReadRow failed: {0}", ex);
         }
         throw;
     }
 }
Пример #2
0
 Task <MembershipTableData> IMembershipTable.ReadRow(SiloAddress key)
 {
     if (logger.IsVerbose3)
     {
         logger.Verbose3(string.Format("SqlMembershipTable.ReadRow called with key: {0}.", key));
     }
     try
     {
         var query = queryConstants.GetConstant(database.InvariantName, QueryKeys.MembershipReadRowKey);
         return(database.MembershipDataAsync(query, deploymentId, key));
     }
     catch (Exception ex)
     {
         if (logger.IsVerbose)
         {
             logger.Verbose("SqlMembershipTable.ReadRow failed: {0}", ex);
         }
         throw;
     }
 }