public static IApplicationBuilder UseRequestCulture(this IApplicationBuilder builder, RequestCultureOptions options)
 {
     return(builder.UseMiddleware <RequestCultureMiddleware>(options));
 }
示例#2
0
 public RequestCultureMiddleware(RequestDelegate next, IOptions <RequestCultureOptions> options)
 {
     this.next    = next;
     this.options = options.Value;
 }
 public RequestCultureMiddleware(RequestDelegate next, RequestCultureOptions options)
 {
     this.next    = next;
     this.options = options;
 }
 public RequestCultureMiddleware(RequestDelegate next, IOptions<RequestCultureOptions> options)
 {
     this.next = next;
     this.options = options.Value;
 }