# WebhookDelivery

> 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.webhookdelivery/
> Summary: WebhookDelivery: A single delivery record.

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

A single delivery record.

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

## Remarks

This record is **not a queue row**: scheduling, leasing, and
retry live in the `jobs` table. The [WebhookDelivery.Attempt](/api/tracon.webhookdelivery/#Tracon_WebhookDelivery_Attempt)
field here only reports history.

## Constructors

### <a id="Tracon_WebhookDelivery__ctor"></a> WebhookDelivery\(\)

```csharp
public WebhookDelivery()
```

## Properties

### <a id="Tracon_WebhookDelivery_Attempt"></a> Attempt

The number of attempts made.

```csharp
public int Attempt { get; init; }
```

#### Property Value

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

The creation time (UTC).

```csharp
public required DateTimeOffset CreatedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)

### <a id="Tracon_WebhookDelivery_DeliveredAt"></a> DeliveredAt

The successful delivery time (UTC).

```csharp
public DateTimeOffset? DeliveredAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)?

### <a id="Tracon_WebhookDelivery_Error"></a> Error

The most recent error message.

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

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

The event name.

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

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

The delivery identifier. Sent in the request as the `X-Tracon-Delivery` header.

```csharp
public required Guid Id { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_WebhookDelivery_Payload"></a> Payload

The JSON body sent.

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

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

Carries only a **summary**: identifier, status, agent,
tokens, cost. Message content never sits here.

### <a id="Tracon_WebhookDelivery_ResponseCode"></a> ResponseCode

The HTTP status code the recipient returned. [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if a
connection could not be established.

```csharp
public int? ResponseCode { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?

### <a id="Tracon_WebhookDelivery_Status"></a> Status

The delivery's status.

```csharp
public required WebhookDeliveryStatus Status { get; init; }
```

#### Property Value

 [WebhookDeliveryStatus](/api/tracon.webhookdeliverystatus/)

### <a id="Tracon_WebhookDelivery_SubscriptionId"></a> SubscriptionId

The subscription identifier.

```csharp
public required Guid SubscriptionId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_WebhookDelivery_TenantId"></a> TenantId

The tenant identifier.

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

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

### <a id="Tracon_WebhookDelivery_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_WebhookDelivery_Equals_Tracon_WebhookDelivery_"></a> Equals\(WebhookDelivery?\)

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

`other` [WebhookDelivery](/api/tracon.webhookdelivery/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_WebhookDelivery_op_Equality_Tracon_WebhookDelivery_Tracon_WebhookDelivery_"></a> operator ==\(WebhookDelivery?, WebhookDelivery?\)

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

`left` [WebhookDelivery](/api/tracon.webhookdelivery/)?

`right` [WebhookDelivery](/api/tracon.webhookdelivery/)?

#### Returns

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

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

`left` [WebhookDelivery](/api/tracon.webhookdelivery/)?

`right` [WebhookDelivery](/api/tracon.webhookdelivery/)?

#### Returns

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