Skip to content

AcceptedRunResponse

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

202 Accepted response for a queued run.

public sealed record AcceptedRunResponse : IEquatable<AcceptedRunResponse>

objectAcceptedRunResponse

IEquatable<AcceptedRunResponse>

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

Returned for a run started with the Prefer: respond-async header. The same information is also carried in the Location header; the body spares the client from having to also construct an event stream address (AcceptedRunResponse.EventsLocation).

public AcceptedRunResponse()

Address of the event stream.

public required string EventsLocation { get; init; }

string

Identifier of the queue record carrying the work.

public required Guid JobId { get; init; }

Guid

Address of the run record. Same as the Location header.

public required string Location { get; init; }

string

Run identifier.

public required Guid RunId { get; init; }

Guid

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AcceptedRunResponse? other)

other AcceptedRunResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(AcceptedRunResponse?, AcceptedRunResponse?)

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

left AcceptedRunResponse?

right AcceptedRunResponse?

bool

operator !=(AcceptedRunResponse?, AcceptedRunResponse?)

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

left AcceptedRunResponse?

right AcceptedRunResponse?

bool