Table of Contents

Class InboundFailureDetails

Namespace
Temporalio.Exceptions
Assembly
Temporalio.dll

Implementation of IFailureDetails for not-yet-converted payloads that will be converted lazily.

public record InboundFailureDetails : IFailureDetails, IEquatable<InboundFailureDetails>
Inheritance
InboundFailureDetails
Implements
Inherited Members

Constructors

InboundFailureDetails(IPayloadConverter, IReadOnlyCollection<Payload>?)

Implementation of IFailureDetails for not-yet-converted payloads that will be converted lazily.

public InboundFailureDetails(IPayloadConverter Converter, IReadOnlyCollection<Payload>? Payloads)

Parameters

Converter IPayloadConverter

Converter to use for conversion.

Payloads IReadOnlyCollection<Payload>

Raw payloads to convert.

Properties

Converter

Converter to use for conversion.

public IPayloadConverter Converter { get; init; }

Property Value

IPayloadConverter

Count

Gets the number of details. May be 0.

public int Count { get; }

Property Value

int

Payloads

Raw payloads to convert.

public IReadOnlyCollection<Payload>? Payloads { get; init; }

Property Value

IReadOnlyCollection<Payload>

Methods

ElementAt<T>(int)

Get a detail value at the given index, converting to the given type if needed.

public T ElementAt<T>(int index)

Parameters

index int

Index of the detail item.

Returns

T

Item at this index for the given type.

Type Parameters

T

The detail type to get. For outbound details this is a cast, for inbound this is a conversion.

Remarks

This will fail if the index is out of range or the type is invalid for the detail item within.