Udostępnij za pośrednictwem


IFunctionsWorkerApplicationBuilder Interface

Definition

Represents a builder for a Functions Worker Application.

public interface IFunctionsWorkerApplicationBuilder
type IFunctionsWorkerApplicationBuilder = interface
Public Interface IFunctionsWorkerApplicationBuilder

Properties

Services

The collection of services for the current IFunctionsWorkerApplicationBuilder.

Methods

Use(Func<FunctionExecutionDelegate,FunctionExecutionDelegate>)

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

Extension Methods

UseAzureAppConfiguration(IFunctionsWorkerApplicationBuilder)

Configures a middleware for Azure App Configuration to use activity-based refresh for data configured in the provider.

UseDefaultWorkerMiddleware(IFunctionsWorkerApplicationBuilder)

Configures the IFunctionsWorkerApplicationBuilder to use the default set of middleware used by the worker, in the following order:

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

Configures the IFunctionsWorkerApplicationBuilder to use the default Microsoft.Azure.Functions.Worker.Pipeline.FunctionExecutionMiddleware.

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

Configures the IFunctionsWorkerApplicationBuilder to use the provided inline middleware delegate.

UseMiddleware<T>(IFunctionsWorkerApplicationBuilder)

Configures the IFunctionsWorkerApplicationBuilder to use the provided middleware type.

UseOutputBindingsMiddleware(IFunctionsWorkerApplicationBuilder)

Configures the IFunctionsWorkerApplicationBuilder to use the default Microsoft.Azure.Functions.Worker.OutputBindings.OutputBindingsMiddleware.

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

Configures the IFunctionsWorkerApplicationBuilder to use the provided inline middleware delegate when the provided predicate expression returns true.

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

Configures the IFunctionsWorkerApplicationBuilder to use the provided middleware type, when the provided predicate expression returns true.

Applies to