Skip to content

Commit 06b9c1f

Browse files
committed
fix some links
1 parent 4a9b9f6 commit 06b9c1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aspnetcore/migration/fx-to-core/areas/hosting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ ms.topic: article
1010
uid: migration/fx-to-core/areas/hosting
1111
---
1212

13-
# Generic Host Pattern
13+
# ASP.NET Framework HttpApplicationHost
1414

1515
The System.Web adapters library enables ASP.NET Framework applications to use the .NET generic host pattern, bringing modern application infrastructure capabilities to traditional ASP.NET Framework projects. This approach provides access to dependency injection, logging, configuration, and other services that are standard in modern .NET applications, while maintaining compatibility with existing ASP.NET Framework code.
1616

17-
## Why use the generic host pattern
17+
## Why use the host pattern
1818

1919
Adopting the generic host pattern in ASP.NET Framework applications provides several key benefits:
2020

@@ -69,8 +69,8 @@ The `AddSystemWebDependencyInjection` method enables dependency injection throug
6969
This extension method is an internal method that will be source generated depending on what you have referenced. The following frameworks are supported:
7070

7171
- WebForms and handlers using the <xref:System.Web.HttpRuntime.WebObjectActivator>
72-
- ASP.NET MVC4 using <xref:System.Web.Mvc.DependencyResolver>
73-
- ASP.NET WebApi 2 using <xref:System.Web.Http.GlobalConfiguration.Configuration.DependencyResolver>
72+
- ASP.NET MVC using <xref:System.Web.Mvc.DependencyResolver>
73+
- ASP.NET WebApi using [DependencyResolver](https://learn.microsoft.com/en-us/previous-versions/aspnet/hh969140(v=vs.108))
7474

7575
### Registering services
7676

@@ -251,7 +251,7 @@ While migrating to this setup, small incremental changes will help ensure a succ
251251

252252
While doing this, you may need to adapt your current containers according to their own documentation for integrating in with the Microsoft Extensions dependency injection
253253
1. Identify your logging system and integrate it into the Microsoft Extension logging infrastructure. Decide if you want to continue using the logger types from your existing system or migrating to the `ILogger<>` types the HttpApplicationHost will provide.
254-
1. Replace all calls to <xref:System.Configuration.ConfigurationManager.AppSettings> and <xref:System.Configuration.ConfigurationManager.ConnectionString> with the new equivalent `AppConfiguration` call. You must be referencing `Microsoft.AspNetCore.SystemWebAdapters` in the project where you want to do this.
254+
1. Replace all calls to <xref:System.Configuration.ConfigurationManager.AppSettings> and <xref:System.Configuration.ConfigurationManager.ConnectionStrings> with the new equivalent `AppConfiguration` call. You must be referencing `Microsoft.AspNetCore.SystemWebAdapters` in the project where you want to do this.
255255
1. Start using the options pattern to convert configuration into POCO that can be passed to consuming services using the integrated DI system
256256
1. Move your settings from `web.config` to `appsettings.json`
257257

0 commit comments

Comments
 (0)