Interface ITemporalTransferTypeConverter
- Namespace
- Temporalio.Converters
- Assembly
- Temporalio.dll
Converter for a type marked with TemporalTransferTypeConverterAttribute.
public interface ITemporalTransferTypeConverter
Remarks
This API is experimental and may change in a future release.
Properties
TransferType
Gets the transfer type handed to or read from the payload converter.
Type TransferType { get; }
Property Value
Methods
FromTransferType(object?)
Convert a transfer type value from the payload converter to the marked type.
object? FromTransferType(object? transferType)
Parameters
transferTypeobjectTransfer type value returned by the payload converter.
Returns
- object
Converted value.
ToTransferType(object?)
Convert a value to the transfer type value that should be passed to the payload converter.
object? ToTransferType(object? value)
Parameters
valueobjectValue to convert.
Returns
- object
Transfer type value to pass to the payload converter.