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