Compartilhar via


IFunctionsWorkerApplicationBuilder.Use Método

Definição

Registra um middleware personalizado no pipeline de invocação do trabalho.

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

Parâmetros

middleware
Func<FunctionExecutionDelegate,FunctionExecutionDelegate>

O middleware a ser registrado.

Retornos

A mesma instância do IFunctionsWorkerApplicationBuilder para chanining.

Aplica-se a