Skip to content

Commit ad6a4d9

Browse files
Fix service provider property in migration sample (#36114)
* Fix service provider property in migration sample * Update date for remote app setup documentation Just updated the ms.date to reflect the doc is received recent work. --------- Co-authored-by: Wade Pickett <[email protected]>
1 parent 4ca1382 commit ad6a4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Remote app setup
44
author: wadepickett
55
ms.author: wpickett
66
monikerRange: '>= aspnetcore-6.0'
7-
ms.date: 07/17/2025
7+
ms.date: 09/16/2025
88
ms.topic: article
99
uid: migration/fx-to-core/inc/remote-app-setup
1010
zone_pivot_groups: migration-remote-app-setup
@@ -136,7 +136,7 @@ To enable proxying from the ASP.NET Core application to the ASP.NET Framework ap
136136
// Configure your other middleware here (authentication, routing, etc.)
137137
138138
// Map the fallback route
139-
app.MapForwarder("/{**catch-all}", app.ServiceProvider.GetRequiredService<IOptions<RemoteAppClientOptions>>().Value.RemoteAppUrl.OriginalString)
139+
app.MapForwarder("/{**catch-all}", app.Services.GetRequiredService<IOptions<RemoteAppClientOptions>>().Value.RemoteAppUrl.OriginalString)
140140

141141
// Ensures this route has the lowest priority (runs last)
142142
.WithOrder(int.MaxValue)

0 commit comments

Comments
 (0)