Compartilhar via


DurableTaskClientOptions.DataConverter Property

Definition

Gets or sets the data converter. Default value is Default.

public Microsoft.DurableTask.DataConverter DataConverter { get; set; }
member this.DataConverter : Microsoft.DurableTask.DataConverter with get, set
Public Property DataConverter As DataConverter

Property Value

Remarks

This is used for serializing inputs and outputs of ITaskOrchestrator.

When set to null, this will revert to Default.

Alternatively, you may add a DataConverter as a singleton service to the service container and this will be populated from that service (only f not manually set).

WARNING: When changing this value, ensure backwards compatibility is preserved for any in-flight orchestrations. If it is not, deserialization may fail.

Applies to