Udostępnij za pośrednictwem


IFunctionsWorkerApplicationBuilder.Use Method

Definition

Registers a custom middleware in the worker's invocation pipeline.

public Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder Use (Func<Microsoft.Azure.Functions.Worker.Middleware.FunctionExecutionDelegate,Microsoft.Azure.Functions.Worker.Middleware.FunctionExecutionDelegate> middleware);
abstract member Use : Func<Microsoft.Azure.Functions.Worker.Middleware.FunctionExecutionDelegate, Microsoft.Azure.Functions.Worker.Middleware.FunctionExecutionDelegate> -> Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder
Public Function Use (middleware As Func(Of FunctionExecutionDelegate, FunctionExecutionDelegate)) As IFunctionsWorkerApplicationBuilder

Parameters

middleware
Func<FunctionExecutionDelegate,FunctionExecutionDelegate>

The middleware to register.

Returns

The same instance of the IFunctionsWorkerApplicationBuilder for chanining.

Applies to