public static IApplicationBuilder UseRequestCulture(this IApplicationBuilder builder, RequestCultureOptions options) { return(builder.UseMiddleware <RequestCultureMiddleware>(options)); }
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; }