HeaderPropagationMiddleware 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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>