From 306ee5b1c2f638c58dd994963bfdc95860bb3044 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 18:28:57 +0000 Subject: [PATCH 1/3] Initial plan From ad439908b10d7fd219fc4b3db4bb99e9be1723b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 18:30:51 +0000 Subject: [PATCH 2/3] Add links to WPF and WinForms host builder articles in DI overview Agent-Logs-Url: https://github.com/dotnet/docs/sessions/99cf7e17-6b73-47d2-9642-8b9d054411a2 Co-authored-by: adegeo <67293991+adegeo@users.noreply.github.com> --- docs/core/extensions/dependency-injection/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/extensions/dependency-injection/overview.md b/docs/core/extensions/dependency-injection/overview.md index 0f71389ad19ed..ec3dcc2e2c0c7 100644 --- a/docs/core/extensions/dependency-injection/overview.md +++ b/docs/core/extensions/dependency-injection/overview.md @@ -37,7 +37,7 @@ Dependency injection addresses hard-coded dependency problems through: .NET provides a built-in service container, . Services are typically registered at the app's start-up and appended to an . Once all services are added, use to create the service container. > [!IMPORTANT] - > Desktop apps control their own lifetime. Frameworks like WPF and Windows Forms require you to integrate the host lifetime with the application lifetime events. + > Desktop apps control their own lifetime. WPF and Windows Forms apps must integrate the host lifetime with the application lifetime events. For more information, see [Use the .NET Generic Host in a WPF app](/dotnet/desktop/wpf/app-development/how-to-use-host-builder) and [Use the .NET Generic Host in a Windows Forms app](/dotnet/desktop/winforms/advanced/how-to-use-host-builder). - Injection of the service into the constructor of the class where it's used. From 4f96a6cd6def4cdd70cecb3837e2186af081b74b Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Tue, 21 Apr 2026 12:09:01 -0700 Subject: [PATCH 3/3] Update docs/core/extensions/dependency-injection/overview.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/core/extensions/dependency-injection/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/extensions/dependency-injection/overview.md b/docs/core/extensions/dependency-injection/overview.md index ec3dcc2e2c0c7..e5134240dcfba 100644 --- a/docs/core/extensions/dependency-injection/overview.md +++ b/docs/core/extensions/dependency-injection/overview.md @@ -37,7 +37,7 @@ Dependency injection addresses hard-coded dependency problems through: .NET provides a built-in service container, . Services are typically registered at the app's start-up and appended to an . Once all services are added, use to create the service container. > [!IMPORTANT] - > Desktop apps control their own lifetime. WPF and Windows Forms apps must integrate the host lifetime with the application lifetime events. For more information, see [Use the .NET Generic Host in a WPF app](/dotnet/desktop/wpf/app-development/how-to-use-host-builder) and [Use the .NET Generic Host in a Windows Forms app](/dotnet/desktop/winforms/advanced/how-to-use-host-builder). + > Desktop apps control their own lifetime. WPF and Windows Forms apps must integrate the host lifetime with the application's lifetime events. For more information, see [Use the .NET Generic Host in a WPF app](/dotnet/desktop/wpf/app-development/how-to-use-host-builder) and [Use the .NET Generic Host in a Windows Forms app](/dotnet/desktop/winforms/advanced/how-to-use-host-builder). - Injection of the service into the constructor of the class where it's used.