Ejemplo n.º 1
0
        public async Task <MembershipTableData> ReadRow(SiloAddress key)
        {
            try
            {
                var entries = await tableManager.FindSiloEntryAndTableVersionRow(key);

                MembershipTableData data = Convert(entries);
                if (logger.IsEnabled(LogLevel.Debug))
                {
                    logger.Debug("Read my entry {0} Table=" + Environment.NewLine + "{1}", key.ToLongString(), data.ToString());
                }
                return(data);
            }
            catch (Exception exc)
            {
                logger.Warn(ErrorCode.AzureTable_20,
                            $"Intermediate error reading silo entry for key {key.ToLongString()} from the table {tableManager.TableName}.", exc);
                throw;
            }
        }
Ejemplo n.º 2
0
        public async Task <MembershipTableData> ReadRow(SiloAddress key)
        {
            try
            {
                var entries = await tableManager.FindSiloEntryAndTableVersionRow(key);

                MembershipTableData data = Convert(entries);
                if (logger.IsEnabled(LogLevel.Debug))
                {
                    logger.LogDebug($"Read my entry {{SiloAddress}} Table={Environment.NewLine}{{Data}}", key.ToLongString(), data.ToString());
                }
                return(data);
            }
            catch (Exception exc)
            {
                logger.LogWarning((int)TableStorageErrorCode.AzureTable_20,
                                  exc,
                                  "Intermediate error reading silo entry for key {SiloAddress} from the table {TableName}.", key.ToLongString(), tableManager.TableName);
                throw;
            }
        }