RunicOperationStatus record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicOperationStatus : IEquatable<RunicOperationStatus>

Inherits or implements IEquatable.

The status of an operation, as the generated client reads it.

Parameters

Kind

The status.

Result

The encoded result of a succeeded operation with a result.

ErrorMessage

Why a failed operation failed.

Json

The status as .NET serialized it.

Constructors

RunicOperationStatus

public RunicOperationStatus(RunicOperationStatusKind Kind, JsonElement? Result, string? ErrorMessage, string Json)

The status of an operation, as the generated client reads it.

Parameters

Kind

The status.

Result

The encoded result of a succeeded operation with a result.

ErrorMessage

Why a failed operation failed.

Json

The status as .NET serialized it.

Properties

ErrorMessage

public string? ErrorMessage { get; init; }

Why a failed operation failed.

Failure

public JsonElement? Failure { get; init; }

The encoded declared failure of a domain-failed operation, when it was retained.

Json

public string Json { get; init; }

The status as .NET serialized it.

Kind

public RunicOperationStatusKind Kind { get; init; }

The status.

Result

public JsonElement? Result { get; init; }

The encoded result of a succeeded operation with a result.