Dotnet Options Lifetime Mismatch

Use when injecting IOptions/IOptionsSnapshot/IOptionsMonitor: the three forms are three lifetimes, and mixing them is a captive dependency — a snapshot injected into a singleton is a request-scoped value pinned for the process.

techmefr Updated

File contents

techmefr/mentis commit 450db44be0

Frequently asked questions

npx get-skill add techmefr/dotnet-options-lifetime-mismatch