public override Task InvokeAsync(IPipeContext context, CancellationToken token) { var messageContext = context.GetMessageContext(); if (messageContext != null) { _repo.Set(messageContext); } return(Next.InvokeAsync(context, token)); }
public override async Task InvokeAsync(IPipeContext context, CancellationToken token = new CancellationToken()) { var retry = context.GetRetryInformation(); if (context.GetMessageContext() is CorrelationContext message) { message.Retries = retry.NumberOfRetries; } await Next.InvokeAsync(context, token); }
public override Task InvokeAsync(IPipeContext context, CancellationToken token = new CancellationToken()) { if (!(context.GetMessageContext() is ConceptContext messageContext)) { _logger.Information("Unable to extract message context from the pipe context."); }