Пример #1
0
        public async Task <ReminderEntry> ReadRow(GrainReference grainRef, string reminderName)
        {
            try
            {
                if (logger.IsEnabled(LogLevel.Debug))
                {
                    logger.Debug("ReadRow grainRef = {0} reminderName = {1}", grainRef, reminderName);
                }
                var result = await remTableManager.FindReminderEntry(grainRef, reminderName);

                return(result == null ? null : ConvertFromTableEntry(result.Item1, result.Item2));
            }
            catch (Exception exc)
            {
                logger.Warn((int)AzureUtils.Utilities.ErrorCode.AzureTable_46,
                            $"Intermediate error reading row with grainId = {grainRef} reminderName = {reminderName} from table {remTableManager.TableName}.", exc);
                throw;
            }
        }
Пример #2
0
        public async Task <ReminderEntry> ReadRow(GrainReference grainRef, string reminderName)
        {
            try
            {
                if (logger.IsVerbose)
                {
                    logger.Verbose("ReadRow grainRef = {0} reminderName = {1}", grainRef, reminderName);
                }
                var result = await remTableManager.FindReminderEntry(grainRef, reminderName);

                return(ConvertFromTableEntry(result.Item1, result.Item2));
            }
            catch (Exception exc)
            {
                logger.Warn(ErrorCode.AzureTable_46, String.Format("Intermediate error reading row with grainId = {0} reminderName = {1} from table {2}.",
                                                                   grainRef, reminderName, remTableManager.TableName), exc);
                throw;
            }
        }