public async Task Next(HttpContext context, Func <Task> next) { var loggerHttpContext = factory.Create(context); await next.Invoke(); await queueWriter.Emit(loggerHttpContext); }
public async Task Emit(HttpRequest request) { await Task.Run(() => { return(_assembler .ToEventContext(request) .Select(context => _eventLaunch.Emit(context)) .ToList()); }); }