public async ValueTask Execute(IPublisherContext context) { try { await _pipeline.Execute(context); } catch (Exception e) { _logger.LogError(e, context.Message.ToString()); } }
public async ValueTask Execute(IPublisherContext context) { var retryContext = new PublisherRetryContext(context); await _retryPolicy.ExecuteAsync(async() => { try { await _pipeline.Execute(retryContext); } catch (Exception) { retryContext.Increment(); throw; } }); }
public async ValueTask Execute(IPublisherContext context) { using (await _limiter.WaitAsync()) await _publisher.Execute(context); }