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