public static IAppBuilder UseConsoleLogging(this IAppBuilder appBuilder) { var requestLoggingHandler = new RequestLoggingHandler(); appBuilder.Use(async (env, next) => { await requestLoggingHandler.ConsoleLogger(env, next); }); return appBuilder; }
public static IAppBuilder UseConsoleLogging(this IAppBuilder appBuilder) { var requestLoggingHandler = new RequestLoggingHandler(); appBuilder.Use(async(env, next) => { await requestLoggingHandler.ConsoleLogger(env, next); }); return(appBuilder); }