Skip to content

Commit

Permalink
Update call-web-api.md (#33894)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbund authored Oct 21, 2024
1 parent cdb66bb commit 431f4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspnetcore/blazor/call-web-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ If you're calling an external web API (not in the same URL space as the client a

```csharp
builder.Services.AddHttpClient("WebAPI", client =>
client.BaseAddress = new Uri(https://localhost:5001));
client.BaseAddress = new Uri("https://localhost:5001"));
```

In the following component code:
Expand Down Expand Up @@ -618,7 +618,7 @@ If you're calling an external web API (not in the same URL space as the client a

```csharp
builder.Services.AddHttpClient<ForecastHttpClient>(client =>
client.BaseAddress = new Uri(https://localhost:5001));
client.BaseAddress = new Uri("https://localhost:5001"));
```

Components inject the typed <xref:System.Net.Http.HttpClient> to call the web API.
Expand Down

0 comments on commit 431f4a5

Please sign in to comment.