共用方式為


HeaderPropagationMiddleware 建構函式

定義

初始化 HeaderPropagationMiddleware 的新執行個體。

public:
 HeaderPropagationMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::HeaderPropagation::HeaderPropagationOptions ^> ^ options, Microsoft::AspNetCore::HeaderPropagation::HeaderPropagationValues ^ values);
public HeaderPropagationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationOptions> options, Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationValues values);
new Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationOptions> * Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationValues -> Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of HeaderPropagationOptions), values As HeaderPropagationValues)

參數

next
RequestDelegate

管線中的下一個中介軟體。

values
HeaderPropagationValues

HeaderPropagationValues 儲存要傳播至 的要求標頭 AsyncLocal<T>

適用於