public static IApplicationBuilder UseLoggerMiddleware(this IApplicationBuilder builder, LoggerMiddlewareOptions options)
 {
     return(builder.UseMiddleware <LoggerMiddleware>(Options.Create(options)));
 }
 public LoggerMiddleware(RequestDelegate next, IOptions <LoggerMiddlewareOptions> options)
 {
     this.next    = next;
     this.options = options.Value;
 }