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