public async Task InvokeAsync(HttpContext context, RequestDelegate next) { var middleware = new RequestLocalizationMiddleware( next, new OptionsWrapper <RequestLocalizationOptions>(_requestLocalizationOptionsProvider.GetLocalizationOptions()), _loggerFactory ); await middleware.Invoke(context); }
public override RequestLocalizationOptions Create(string name) { return(_abpRequestLocalizationOptionsProvider.GetLocalizationOptions()); }