Share via


WorkerHostBuilderExtensions.ConfigureFunctionsWorkerDefaults Method

Definition

Overloads

ConfigureFunctionsWorkerDefaults(IHostBuilder)

Configures the default set of Functions Worker services to the provided IHostBuilder. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<IFunctionsWorkerApplicationBuilder>)

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided IFunctionsWorkerApplicationBuilder. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<WorkerOptions>)

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided WorkerOptions. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>)

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder.

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<IFunctionsWorkerApplicationBuilder>, Action<WorkerOptions>)

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided IFunctionsWorkerApplicationBuilder and a delegate to configure the WorkerOptions. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>, Action<WorkerOptions>)

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder, and a delegate to configure the WorkerOptions.

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.

ConfigureFunctionsWorkerDefaults(IHostBuilder)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<IFunctionsWorkerApplicationBuilder>)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided IFunctionsWorkerApplicationBuilder. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> configure);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

configure
Action<IFunctionsWorkerApplicationBuilder>

A delegate that will be invoked to configure the provided IFunctionsWorkerApplicationBuilder.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<WorkerOptions>)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided WorkerOptions. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Azure.Functions.Worker.WorkerOptions> configureOptions);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

configureOptions
Action<WorkerOptions>

A delegate that will be invoked to configure the provided WorkerOptions.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder.

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> configure);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

configure
Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>

A delegate that will be invoked to configure the provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<IFunctionsWorkerApplicationBuilder>, Action<WorkerOptions>)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided IFunctionsWorkerApplicationBuilder and a delegate to configure the WorkerOptions. The following defaults are configured:

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> configure, Action<Microsoft.Azure.Functions.Worker.WorkerOptions> configureOptions);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

configure
Action<IFunctionsWorkerApplicationBuilder>

A delegate that will be invoked to configure the provided IFunctionsWorkerApplicationBuilder.

configureOptions
Action<WorkerOptions>

A delegate that will be invoked to configure the provided WorkerOptions.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

ConfigureFunctionsWorkerDefaults(IHostBuilder, Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>, Action<WorkerOptions>)

Source:
WorkerHostBuilderExtensions.cs
Source:
WorkerHostBuilderExtensions.cs

Configures the default set of Functions Worker services to the provided IHostBuilder, with a delegate to configure a provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder, and a delegate to configure the WorkerOptions.

  • A default set of converters.
  • Configures the default JsonSerializerOptions to ignore casing on property names.
  • Integration with Azure Functions logging.
  • Adds environment variables as a configuration source.
  • Adds command line arguments as a configuration source.
  • Output binding middleware and features.
  • Function execution middleware.
  • Default gRPC support.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureFunctionsWorkerDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> configure, Action<Microsoft.Azure.Functions.Worker.WorkerOptions> configureOptions);

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

configure
Action<HostBuilderContext,IFunctionsWorkerApplicationBuilder>

A delegate that will be invoked to configure the provided HostBuilderContext and an IFunctionsWorkerApplicationBuilder.

configureOptions
Action<WorkerOptions>

A delegate that will be invoked to configure the provided WorkerOptions.

Returns

The IHostBuilder.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview