Skip to content

Commit 31df823

Browse files
VedikaGuptVedika Guptawadepickett
authored
Fix System.Web Adapters service registration syntax in documentation (#36679)
* Fix SystemWebAdapters registration syntax in HttpApplicationHost * Apply suggestion from @wadepickett Updated the doc date. --------- Co-authored-by: Vedika Gupta <vedikagupta@Vedikas-MacBook-Pro.local> Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent 70f4d44 commit 31df823

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

aspnetcore/migration/fx-to-core/inc/remote-app-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: wadepickett
55
description: Remote app setup
66
monikerRange: '>= aspnetcore-6.0'
77
ms.author: wpickett
8-
ms.date: 12/10/2025
8+
ms.date: 01/26/2026
99
ms.topic: concept-article
1010
uid: migration/fx-to-core/inc/remote-app-setup
1111
zone_pivot_groups: migration-remote-app-setup
@@ -64,7 +64,7 @@ To configure the application to be available to handle the requests from the ASP
6464
{
6565
HttpApplicationHost.RegisterHost(builder =>
6666
{
67-
builder.AddSystemWebAdapters()
67+
builder.Services.AddSystemWebAdapters()
6868
.AddRemoteAppServer(options =>
6969
{
7070
// ApiKey is a string representing a GUID
@@ -266,7 +266,7 @@ To enable proxying from the ASP.NET Core application to the ASP.NET Framework ap
266266
HttpApplicationHost.RegisterHost(builder =>
267267
{
268268
builder.AddServiceDefaults();
269-
builder.AddSystemWebAdapters();
269+
builder.Services.AddSystemWebAdapters();
270270
});
271271
}
272272
```

0 commit comments

Comments
 (0)