Example #1
0
 public async Task UpdateIAmAlive(MembershipEntry entry)
 {
     try
     {
         if (logger.IsVerbose)
         {
             logger.Verbose("Merge entry = {0}", entry.ToFullString());
         }
         var siloEntry = ConvertPartial(entry, tableManager.DeploymentId);
         await tableManager.MergeTableEntryAsync(siloEntry);
     }
     catch (Exception exc)
     {
         logger.Warn(ErrorCode.AzureTable_26, String.Format("Intermediate error updating IAmAlive field for entry {0} to the table {1}.", entry.ToFullString(), tableManager.TableName), exc);
         throw;
     }
 }
Example #2
0
 public async Task UpdateIAmAlive(MembershipEntry entry)
 {
     try
     {
         if (logger.IsEnabled(LogLevel.Debug))
         {
             logger.Debug("Merge entry = {0}", entry.ToFullString());
         }
         var siloEntry = ConvertPartial(entry, tableManager.DeploymentId);
         await tableManager.MergeTableEntryAsync(siloEntry);
     }
     catch (Exception exc)
     {
         logger.Warn((int)TableStorageErrorCode.AzureTable_26,
                     $"Intermediate error updating IAmAlive field for entry {entry.ToFullString()} to the table {tableManager.TableName}.", exc);
         throw;
     }
 }