Skip to content

IdempotencyReservation

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of an IIdempotencyStore.ReserveAsync call.

public sealed record IdempotencyReservation : IEquatable<IdempotencyReservation>

objectIdempotencyReservation

IEquatable<IdempotencyReservation>

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

public IdempotencyReservation()

Populated only for IdempotencyState.Completed.

public IdempotencyResponse? Response { get; init; }

IdempotencyResponse?

The state the key was found in.

public required IdempotencyState State { get; init; }

IdempotencyState

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(IdempotencyReservation? other)

other IdempotencyReservation?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(IdempotencyReservation?, IdempotencyReservation?)

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

left IdempotencyReservation?

right IdempotencyReservation?

bool

operator !=(IdempotencyReservation?, IdempotencyReservation?)

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

left IdempotencyReservation?

right IdempotencyReservation?

bool