RequestLocalizationMiddleware 类

定义

根据客户端在应用程序提供的标头和逻辑中发送的信息,为 启用自动区域性设置 HttpRequest

public ref class RequestLocalizationMiddleware
public class RequestLocalizationMiddleware
type RequestLocalizationMiddleware = class
Public Class RequestLocalizationMiddleware
继承
RequestLocalizationMiddleware

构造函数

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>, ILoggerFactory)

创建一个新的 RequestLocalizationMiddleware

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>)
已过时.

创建一个新的 RequestLocalizationMiddleware

方法

Invoke(HttpContext)

调用中间件的逻辑。

适用于