Поделиться через


RequestLocalizationMiddleware Конструкторы

Определение

Перегрузки

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>)
Устаревшие..

Создает новый экземпляр RequestLocalizationMiddleware.

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>, ILoggerFactory)

Создает новый экземпляр RequestLocalizationMiddleware.

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>)

Исходный код:
RequestLocalizationMiddleware.cs
Исходный код:
RequestLocalizationMiddleware.cs

Внимание!

This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory) instead

Создает новый экземпляр RequestLocalizationMiddleware.

public:
 RequestLocalizationMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^> ^ options);
public RequestLocalizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> options);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory) instead")]
public RequestLocalizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> options);
new Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> -> Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions<RequestLocalizationOptions> options, ILoggerFactory loggerFactory) instead")>]
new Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> -> Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of RequestLocalizationOptions))

Параметры

next
RequestDelegate

Объект , RequestDelegate представляющий следующее ПО промежуточного слоя в конвейере.

options
IOptions<RequestLocalizationOptions>

Объект , RequestLocalizationOptions представляющий параметры для RequestLocalizationMiddleware.

Атрибуты

Применяется к

RequestLocalizationMiddleware(RequestDelegate, IOptions<RequestLocalizationOptions>, ILoggerFactory)

Исходный код:
RequestLocalizationMiddleware.cs

Создает новый экземпляр RequestLocalizationMiddleware.

public:
 RequestLocalizationMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::RequestLocalizationOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
[Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor]
public RequestLocalizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public RequestLocalizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
[<Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructor>]
new Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware
new Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.RequestLocalizationOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of RequestLocalizationOptions), loggerFactory As ILoggerFactory)

Параметры

next
RequestDelegate

Объект , RequestDelegate представляющий следующее ПО промежуточного слоя в конвейере.

options
IOptions<RequestLocalizationOptions>

Объект , RequestLocalizationOptions представляющий параметры для , используемого ILoggerFactory для ведения журнала.RequestLocalizationMiddleware

loggerFactory
ILoggerFactory
Атрибуты

Применяется к