# RunAuthorizationRequest

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.runauthorizationrequest/
> Summary: RunAuthorizationRequest: Describes one run awaiting an authorization decision.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

Describes one run awaiting an authorization decision.

```csharp
public sealed record RunAuthorizationRequest : IEquatable<RunAuthorizationRequest>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.runauthorizationrequest/">RunAuthorizationRequest</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;RunAuthorizationRequest&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_RunAuthorizationRequest__ctor"></a> RunAuthorizationRequest\(\)

```csharp
public RunAuthorizationRequest()
```

## Properties

### <a id="Tracon_RunAuthorizationRequest_Access"></a> Access

Gets the kind of access being requested.

```csharp
public required RunAccess Access { get; init; }
```

#### Property Value

 [RunAccess](/api/tracon.runaccess/)

### <a id="Tracon_RunAuthorizationRequest_AgentName"></a> AgentName

Gets the name of the agent (or workflow) the run would start, or
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the request is not about starting one.

```csharp
public string? AgentName { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

#### Remarks

Always populated for [RunAccess.Start](/api/tracon.runaccess/). For every other
[RunAccess](/api/tracon.runaccess/) value it carries the agent name of the run the
resource belongs to when that is known, and [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when
it is not (a list, or an attachment uploaded before any run existed).

### <a id="Tracon_RunAuthorizationRequest_RunId"></a> RunId

Gets the run the request is about, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when there
is no single run.

```csharp
public Guid? RunId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)?

#### Remarks

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](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for a plain
[RunAccess.Start](/api/tracon.runaccess/) — the run does not exist yet — and for
list operations.

### <a id="Tracon_RunAuthorizationRequest_SessionId"></a> SessionId

Gets the session the run would continue, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for
a sessionless run.

```csharp
public string? SessionId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_RunAuthorizationRequest_TenantId"></a> TenantId

Gets the tenant the run would belong to.

```csharp
public required string TenantId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_RunAuthorizationRequest_UserId"></a> UserId

Gets the calling user, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when unknown.

```csharp
public string? UserId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

## Methods

### <a id="Tracon_RunAuthorizationRequest_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RunAuthorizationRequest_Equals_Tracon_RunAuthorizationRequest_"></a> Equals\(RunAuthorizationRequest?\)

```csharp
public bool Equals(RunAuthorizationRequest? other)
```

#### Parameters

`other` [RunAuthorizationRequest](/api/tracon.runauthorizationrequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RunAuthorizationRequest_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_RunAuthorizationRequest_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_RunAuthorizationRequest_op_Equality_Tracon_RunAuthorizationRequest_Tracon_RunAuthorizationRequest_"></a> operator ==\(RunAuthorizationRequest?, RunAuthorizationRequest?\)

```csharp
public static bool operator ==(RunAuthorizationRequest? left, RunAuthorizationRequest? right)
```

#### Parameters

`left` [RunAuthorizationRequest](/api/tracon.runauthorizationrequest/)?

`right` [RunAuthorizationRequest](/api/tracon.runauthorizationrequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RunAuthorizationRequest_op_Inequality_Tracon_RunAuthorizationRequest_Tracon_RunAuthorizationRequest_"></a> operator \!=\(RunAuthorizationRequest?, RunAuthorizationRequest?\)

```csharp
public static bool operator !=(RunAuthorizationRequest? left, RunAuthorizationRequest? right)
```

#### Parameters

`left` [RunAuthorizationRequest](/api/tracon.runauthorizationrequest/)?

`right` [RunAuthorizationRequest](/api/tracon.runauthorizationrequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
