public async Task InvokeAsync(HttpContext context, Icounter counter, CounterService counterService) { i++; await context.Response.WriteAsync($"Request: {i} Icounter: {counter.Value}" + $" CounterService: {counterService.Counter.Value}"); }
public CounterService(Icounter counter) { Counter = counter; }