public Task InvokeAsync(HttpContext context, RequestDelegate next) { Console.WriteLine("Hi from the middleware"); printer.Log("Sample message"); iColor.PrintColor(); return(next(context)); }
public void PrintColor() { printer.Log("This color is blue, sucka."); }