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>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
ValueTThe created entity.
LocationstringAn address that identifies the newly created resource (e.g. a URI path).
MetadataRepresentationMetadataOptional 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
Metadata
Optional representation metadata (ETag, Last-Modified, …) for the new resource.
public RepresentationMetadata? Metadata { get; init; }
Property Value
Value
The created entity.
public T Value { get; init; }
Property Value
- T