# LiveVoiceAttachRequest

> 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.livevoiceattachrequest/
> Summary: LiveVoiceAttachRequest: The request that attaches the server-side control connection to a live voice session.

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

The request that attaches the server-side control connection to a live voice session.

```csharp
public sealed record LiveVoiceAttachRequest : IEquatable<LiveVoiceAttachRequest>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.livevoiceattachrequest/">LiveVoiceAttachRequest</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;LiveVoiceAttachRequest&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_LiveVoiceAttachRequest__ctor"></a> LiveVoiceAttachRequest\(\)

```csharp
public LiveVoiceAttachRequest()
```

## Properties

### <a id="Tracon_LiveVoiceAttachRequest_Credential"></a> Credential

Gets the credential the session was created with: the tenant's own, or
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for the provider's configured credential.

```csharp
public ModelProviderCredential? Credential { get; init; }
```

#### Property Value

 [ModelProviderCredential](/api/tracon.modelprovidercredential/)?

#### Remarks

The same credential as [LiveVoiceCreateRequest.Credential](/api/tracon.livevoicecreaterequest/#Tracon_LiveVoiceCreateRequest_Credential) for the same session.

### <a id="Tracon_LiveVoiceAttachRequest_ProviderSessionId"></a> ProviderSessionId

Gets the identifier [ILiveVoiceProvider.CreateSessionAsync](/api/tracon.ilivevoiceprovider/#Tracon_ILiveVoiceProvider_CreateSessionAsync_Tracon_LiveVoiceCreateRequest_System_Threading_CancellationToken_) returned.

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

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

### <a id="Tracon_LiveVoiceAttachRequest_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_LiveVoiceAttachRequest_Equals_Tracon_LiveVoiceAttachRequest_"></a> Equals\(LiveVoiceAttachRequest?\)

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

`other` [LiveVoiceAttachRequest](/api/tracon.livevoiceattachrequest/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_LiveVoiceAttachRequest_op_Equality_Tracon_LiveVoiceAttachRequest_Tracon_LiveVoiceAttachRequest_"></a> operator ==\(LiveVoiceAttachRequest?, LiveVoiceAttachRequest?\)

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

`left` [LiveVoiceAttachRequest](/api/tracon.livevoiceattachrequest/)?

`right` [LiveVoiceAttachRequest](/api/tracon.livevoiceattachrequest/)?

#### Returns

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

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

`left` [LiveVoiceAttachRequest](/api/tracon.livevoiceattachrequest/)?

`right` [LiveVoiceAttachRequest](/api/tracon.livevoiceattachrequest/)?

#### Returns

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