Compartilhar via


IFunctionsWorkerApplicationBuilder Interface

Definição

Representa um construtor para um aplicativo de trabalho do Functions.

public interface IFunctionsWorkerApplicationBuilder
type IFunctionsWorkerApplicationBuilder = interface
Public Interface IFunctionsWorkerApplicationBuilder

Propriedades

Services

A coleção de serviços para o atual IFunctionsWorkerApplicationBuilder.

Métodos

Use(Func<FunctionExecutionDelegate,FunctionExecutionDelegate>)

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

Métodos de Extensão

UseDefaultWorkerMiddleware(IFunctionsWorkerApplicationBuilder)

Configura o IFunctionsWorkerApplicationBuilder para usar o conjunto padrão de middleware usado pelo trabalho, na seguinte ordem:

  1. Microsoft.Azure.Functions.Worker.OutputBindings.OutputBindingsMiddleware
  2. Microsoft.Azure.Functions.Worker.Pipeline.FunctionExecutionMiddleware
UseFunctionExecutionMiddleware(IFunctionsWorkerApplicationBuilder)

Configura o IFunctionsWorkerApplicationBuilder para usar o padrão Microsoft.Azure.Functions.Worker.Pipeline.FunctionExecutionMiddleware.

UseMiddleware(IFunctionsWorkerApplicationBuilder, Func<FunctionContext,Func<Task>,Task>)

Configura o IFunctionsWorkerApplicationBuilder para usar o delegado de middleware embutido fornecido.

UseMiddleware<T>(IFunctionsWorkerApplicationBuilder)

Configura o IFunctionsWorkerApplicationBuilder para usar o tipo de middleware fornecido.

UseOutputBindingsMiddleware(IFunctionsWorkerApplicationBuilder)

Configura o IFunctionsWorkerApplicationBuilder para usar o padrão Microsoft.Azure.Functions.Worker.OutputBindings.OutputBindingsMiddleware.

UseWhen(IFunctionsWorkerApplicationBuilder, Func<FunctionContext,Boolean>, Func<FunctionContext,Func<Task>,Task>)

Configura o IFunctionsWorkerApplicationBuilder para usar o delegado de middleware embutido fornecido quando a expressão de predicado fornecida retorna true.

UseWhen<T>(IFunctionsWorkerApplicationBuilder, Func<FunctionContext,Boolean>)

Configura o IFunctionsWorkerApplicationBuilder para usar o tipo de middleware fornecido, quando a expressão de predicado fornecida retorna true.

Aplica-se a