Table of Contents

Class WriteOutcome<T>.Created

Namespace
Trellis
Assembly
Trellis.Core.dll

A new resource was created. Transports as HTTP 201 Created.

public sealed record WriteOutcome<T>.Created : WriteOutcome<T>, IEquatable<WriteOutcome<T>>, IEquatable<WriteOutcome<T>.Created>
Inheritance
WriteOutcome<T>.Created
Implements
Inherited Members
Extension Methods

Constructors

Created(T, string, RepresentationMetadata?)

A new resource was created. Transports as HTTP 201 Created.

public Created(T Value, string Location, RepresentationMetadata? Metadata = null)

Parameters

Value T

The created entity.

Location string

An address that identifies the newly created resource (e.g. a URI path).

Metadata RepresentationMetadata

Optional representation metadata (ETag, Last-Modified, …) for the new resource.

Properties

Location

An address that identifies the newly created resource (e.g. a URI path).

public string Location { get; init; }

Property Value

string

Metadata

Optional representation metadata (ETag, Last-Modified, …) for the new resource.

public RepresentationMetadata? Metadata { get; init; }

Property Value

RepresentationMetadata

Value

The created entity.

public T Value { get; init; }

Property Value

T