Skip to content

IdempotencyRequest

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

An idempotency reservation request.

public sealed record IdempotencyRequest : IEquatable<IdempotencyRequest>

objectIdempotencyRequest

IEquatable<IdempotencyRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public IdempotencyRequest()

The time the reservation was made (UTC).

public required DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

The HTTP method + path + raw body digest (SHA-256).

public required string Fingerprint { get; init; }

string

The key the client sent in the Idempotency-Key header.

public required string Key { get; init; }

string

The tenant identifier.

public required string TenantId { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(IdempotencyRequest? other)

other IdempotencyRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(IdempotencyRequest?, IdempotencyRequest?)

Section titled “ operator ==(IdempotencyRequest?, IdempotencyRequest?)”
public static bool operator ==(IdempotencyRequest? left, IdempotencyRequest? right)

left IdempotencyRequest?

right IdempotencyRequest?

bool

operator !=(IdempotencyRequest?, IdempotencyRequest?)

Section titled “ operator !=(IdempotencyRequest?, IdempotencyRequest?)”
public static bool operator !=(IdempotencyRequest? left, IdempotencyRequest? right)

left IdempotencyRequest?

right IdempotencyRequest?

bool