Skip to content
Tracon

RunAuthorizationRequest

Namespace Tracon · Assembly Tracon.Abstractions.dll

Describes one run awaiting an authorization decision.

public sealed record RunAuthorizationRequest : IEquatable<RunAuthorizationRequest>

objectRunAuthorizationRequest

IEquatable<RunAuthorizationRequest>

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

public RunAuthorizationRequest()

Gets the kind of access being requested.

public required RunAccess Access { get; init; }

RunAccess

Gets the name of the agent (or workflow) the run would start, or null when the request is not about starting one.

public string? AgentName { get; init; }

string?

Always populated for RunAccess.Start. For every other RunAccess value it carries the agent name of the run the resource belongs to when that is known, and null when it is not (a list, or an attachment uploaded before any run existed).

Gets the run the request is about, or null when there is no single run.

public Guid? RunId { get; init; }

Guid?

Populated for every resource access (reading a run, canceling it, scoring it, its attachments and its approvals) and for a replay, where it identifies the source run whose recorded input is about to run again. It is null for a plain RunAccess.Start — the run does not exist yet — and for list operations.

Gets the session the run would continue, or null for a sessionless run.

public string? SessionId { get; init; }

string?

Gets the tenant the run would belong to.

public required string TenantId { get; init; }

string

Gets the calling user, or null when unknown.

public string? UserId { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunAuthorizationRequest? other)

other RunAuthorizationRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunAuthorizationRequest?, RunAuthorizationRequest?)

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

left RunAuthorizationRequest?

right RunAuthorizationRequest?

bool

operator !=(RunAuthorizationRequest?, RunAuthorizationRequest?)

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

left RunAuthorizationRequest?

right RunAuthorizationRequest?

bool