Delen via


WorkerOptions Class

Definition

An options class for configuring the worker.

public class WorkerOptions
type WorkerOptions = class
Public Class WorkerOptions
Inheritance
WorkerOptions

Constructors

WorkerOptions()

Properties

Capabilities

Gets the optional worker capabilities.

EnableUserCodeException

Gets and sets the flag for opting in to unwrapping user-code-thrown exceptions when they are surfaced to the Host.

IncludeEmptyEntriesInMessagePayload

Gets or sets a value that determines if empty entries should be included in the function trigger message payload. For example, if a set of entries were sent to a messaging service such as Service Bus or Event Hub and your function app has a Service bus trigger or Event hub trigger, only the non-empty entries from the payload will be sent to the function code as trigger data when this setting value is false. When it is true, All entries will be sent to the function code as it is. Default value for this setting is false.

InputConverters

Gets the collection of input converters.

Serializer

The ObjectSerializer to use for all JSON serialization and deserialization. By default, this is a default JsonObjectSerializer with default JsonSerializerOptions.

Applies to