// Token: 0x0600154D RID: 5453 RVA: 0x000551AC File Offset: 0x000533AC public static TransientErrorInfo ConstructFromPersisted(TransientErrorInfoPersisted errorInfo) { TransientErrorInfo transientErrorInfo = new TransientErrorInfo(); transientErrorInfo.m_currentErrorState = StateTransitionInfo.ConvertErrorTypeFromSerializable(errorInfo.CurrentErrorState); transientErrorInfo.m_lastErrorState = transientErrorInfo.m_currentErrorState; DateTimeHelper.ParseIntoDateTimeIfPossible(errorInfo.LastSuccessTransitionUtc, ref transientErrorInfo.m_lastSuccessTransitionUtc); DateTimeHelper.ParseIntoDateTimeIfPossible(errorInfo.LastFailureTransitionUtc, ref transientErrorInfo.m_lastFailureTransitionUtc); return(transientErrorInfo); }
// Token: 0x06001569 RID: 5481 RVA: 0x0005562C File Offset: 0x0005382C private TransientErrorInfo GetExistingOrNewErrorInfo(TKey key) { TransientErrorInfo transientErrorInfo = null; if (!this.m_errorTable.TryGetValue(key, out transientErrorInfo)) { transientErrorInfo = new TransientErrorInfo(); this.m_errorTable[key] = transientErrorInfo; } return(transientErrorInfo); }
// Token: 0x06001567 RID: 5479 RVA: 0x00055610 File Offset: 0x00053810 public bool ReportFailure(TKey key, TimeSpan suppressDuration) { TransientErrorInfo existingOrNewErrorInfo = this.GetExistingOrNewErrorInfo(key); return(existingOrNewErrorInfo.ReportFailure(suppressDuration)); }
// Token: 0x06001565 RID: 5477 RVA: 0x000555D8 File Offset: 0x000537D8 public void ReportSuccess(TKey key) { TransientErrorInfo existingOrNewErrorInfo = this.GetExistingOrNewErrorInfo(key); existingOrNewErrorInfo.ReportSuccess(); }