Captive Dependency with ASP.NET Core

Ashish Patel
.NET Hub
Published in
2 min readSep 12, 2020

--

What is a captive dependency — Understanding .NET Core Captive Dependencies

Captive Dependency with ASP.NET Core

TL;DR:

Captive Dependency is a dependency with an incorrectly configured lifetime. A service should never depend on a service that has a shorter lifetime than its own.

What is a Captive Dependency?

--

--

Ashish Patel
.NET Hub

Cloud Architect • 4x AWS Certified • 6x Azure Certified • 1x Kubernetes Certified • MCP • .NET • Terraform • DevOps • Blogger [https://bit.ly/iamashishpatel]