public void PublishAwait(string subject, T data) { data.Call.Status = "AWAIT"; data.Call.NextCall = DateTime.Now.AddMinutes(15); data.Call.RetryCount += 1; if (data.Call.RetryCount > 20) { throw new QuantCallRetryCountException($"Retry count was finishes 20"); } // correlation AddCorellation(subject, data, data.TransactionInfo.TransactionId); _obs.PublishAwait(subject, data); }
public void PublishAwait(string subject, T data) { _obs.PublishAwait(subject, data); }