> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0080 - Missing resilience configuration

> HTTP clients should have resilience policies configured

Source: [Al0080MissingResilienceConfigurationAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0080MissingResilienceConfigurationAnalyzer.cs)

## Description

HTTP clients registered via `AddHttpClient()` should have resilience policies (retry, circuit breaker, timeout) to handle transient failures.

## Bad Code

```csharp theme={null}
builder.Services.AddHttpClient("orders", c =>
    c.BaseAddress = new Uri("https://api.example.com"));
```

## Good Code

```csharp theme={null}
builder.Services.AddHttpClient("orders", c =>
    c.BaseAddress = new Uri("https://api.example.com"))
    .AddStandardResilienceHandler();
```

## Properties

* **Category**: ASP.NET Core
* **Severity**: Warning
* **Enabled by default**: True
* **Code fix available**: False

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0080.severity = warning
```
