Condividi tramite


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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder) As IHostBuilder

Parameters

builder
IHostBuilder

The IHostBuilder to configure.

Returns

The IHostBuilder.

Applies to

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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder, configure As Action(Of IFunctionsWorkerApplicationBuilder)) As IHostBuilder

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

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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Azure.Functions.Worker.WorkerOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder, configureOptions As Action(Of WorkerOptions)) As IHostBuilder

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

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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder, configure As Action(Of HostBuilderContext, IFunctionsWorkerApplicationBuilder)) As IHostBuilder

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

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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> * Action<Microsoft.Azure.Functions.Worker.WorkerOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder, configure As Action(Of IFunctionsWorkerApplicationBuilder), configureOptions As Action(Of WorkerOptions)) As IHostBuilder

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

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);
static member ConfigureFunctionsWorkerDefaults : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Azure.Functions.Worker.IFunctionsWorkerApplicationBuilder> * Action<Microsoft.Azure.Functions.Worker.WorkerOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureFunctionsWorkerDefaults (builder As IHostBuilder, configure As Action(Of HostBuilderContext, IFunctionsWorkerApplicationBuilder), configureOptions As Action(Of WorkerOptions)) As IHostBuilder

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