public RetryOperation GetStatusForRetryOperation(string requestId, RetryType retryType) { RetryOperation summary; Operations.TryGetValue(RetryOperation.MakeOperationId(requestId, retryType), out summary); return(summary); }
public bool IsOperationInProgressFor(string requestId, RetryType retryType) { RetryOperation summary; if (!Operations.TryGetValue(RetryOperation.MakeOperationId(requestId, retryType), out summary)) { return(false); } return(summary.RetryState != RetryState.Completed && summary.RetryState != RetryState.Waiting); }
private RetryOperation GetOrCreate(RetryType retryType, string requestId) { RetryOperation summary; if (!Operations.TryGetValue(RetryOperation.MakeOperationId(requestId, retryType), out summary)) { summary = new RetryOperation(requestId, retryType); Operations[RetryOperation.MakeOperationId(requestId, retryType)] = summary; } return(summary); }
private static RetryOperation Get(string requestId, RetryType retryType) { return(Operations[RetryOperation.MakeOperationId(requestId, retryType)]); }