Table of Contents

Class WriteOutcome<T>

Namespace
Trellis
Assembly
Trellis.Core.dll

Represents the outcome of a write operation (create / replace / accept-for-async) returned by Application-layer repositories. The case selected describes what happened in transport-agnostic terms; transport adapters (e.g. Trellis.Asp) translate each case to a protocol-specific response (HTTP status code + headers, gRPC status, queue ack envelope, etc.).

public abstract record WriteOutcome<T> : IEquatable<WriteOutcome<T>>

Type Parameters

T

The representation/body type returned for Created/Updated and the status payload type used by Accepted.

Inheritance
WriteOutcome<T>
Implements
Derived
Inherited Members
Extension Methods

Remarks

The case set aligns with the write outcomes enumerated in RFC 9110 ยง9.3.4 because HTTP is the most commonly served transport, but the type itself takes no dependency on any transport package.