Class EncodedRawValue
- Namespace
- Temporalio.Converters
- Assembly
- Temporalio.dll
Implementation of a IEncodedRawValue.
public record EncodedRawValue : IEncodedRawValue, IEquatable<EncodedRawValue>
- Inheritance
-
EncodedRawValue
- Implements
- Inherited Members
Constructors
EncodedRawValue(DataConverter, Payload)
Implementation of a IEncodedRawValue.
public EncodedRawValue(DataConverter DataConverter, Payload Payload)
Parameters
DataConverter
DataConverterData converter to perform conversions.
Payload
PayloadRaw payload.
Properties
DataConverter
Data converter to perform conversions.
public DataConverter DataConverter { get; init; }
Property Value
Payload
Raw payload.
public Payload Payload { get; init; }
Property Value
Methods
ToValueAsync(Type)
Decode and convert the raw value to the given type.
public Task<object?> ToValueAsync(Type type)
Parameters
type
TypeType to convert to.
Returns
ToValueAsync<T>()
Decode and convert the raw value to the given type.
public Task<T> ToValueAsync<T>()
Returns
- Task<T>
Decoded and converted value.
Type Parameters
T
Type to convert to.