Class TemporalTransferTypeConverterAttribute
- Namespace
- Temporalio.Converters
- Assembly
- Temporalio.dll
Marks a type as converting to and from a transfer type before payload conversion.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, Inherited = false)]
public sealed class TemporalTransferTypeConverterAttribute : Attribute
- Inheritance
-
TemporalTransferTypeConverterAttribute
- Inherited Members
Remarks
This is used by the SDK payload converter to delegate hook-aware values to the configured payload converter using the transfer type representation provided by ITemporalTransferTypeConverter. A constructed generic type may specify a generic converter type definition. The SDK closes the converter with all generic arguments from the marked type in declaration order. The marked type and converter must have the same generic arity, and the arguments must satisfy the converter's generic constraints. Closed converter types remain supported for both generic and non-generic marked types. This API is experimental and may change in a future release.
Constructors
TemporalTransferTypeConverterAttribute(Type)
Initializes a new instance of the TemporalTransferTypeConverterAttribute class.
public TemporalTransferTypeConverterAttribute(Type converterType)
Parameters
converterTypeTypeClosed converter type implementing ITemporalTransferTypeConverter, or a generic converter type definition whose generic parameters directly match those of the marked type.
Properties
ConverterType
Gets the converter type.
public Type ConverterType { get; }