Beispiel #1
0
 public static IApplicationBuilder UseLogMiddleware(this IApplicationBuilder builder, LogMiddlewareOptions options)
 {
     return(builder.UseMiddleware <LogMiddleware>(Options.Create(options)));
 }
Beispiel #2
0
 public LogMiddleware(RequestDelegate next, IOptions <LogMiddlewareOptions> options)
 {
     this.next    = next;
     this.options = options.Value;
 }