Example #1
0
 public static IApplicationBuilder UseCanonicalUrlMiddleware(this IApplicationBuilder builder, CanonicalUrlMiddlewareOptions options)
 {
     return(builder.UseMiddleware <CanonicalUrlMiddleware>(options));
 }
 public CanonicalUrlMiddleware(RequestDelegate next, CanonicalUrlMiddlewareOptions options)
 {
     _next    = next;
     _options = options;
 }