Click here to Skip to main content
15,882,063 members
Articles / Programming Languages / C#

Workaround for ServiceCollection.Configure<T> failing where T is ConcurrentDictionary<string, TMyConfig> in NET7

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
29 Nov 2022CPOL 10.8K   1  
Option Binding for a ConcurrentDictionary that works in NET6 fails in NET7. This is a workaround.
Workaround for a regression in NET7 discovered while converting a project from NET6 to NET7.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) CodeProject
Canada Canada
As Senior Architect, Matthew is responsible for the Architecture, Design, and Coding of the CodeProject software as well as Manager of the Infrastructure that runs the web site.

Matthew works on improving the performance and experience of the Code Project site for users, clients, and administrators.

Matthew has more years of software development, QA and architecture experience under his belt than he likes to admit. He graduated from the University of Waterloo with a B.Sc. in Electrical Engineering. He started out developing micro-processor based hardware and software including compilers and operating systems.
His current focus is on .NET web development including jQuery, Webforms, MVC, AJAX, and patterns and practices for creating better websites.
He is the author of the Munq IOC, the fastest ASP.NET focused IOC Container.
His non-programming passions include golf, pool, curling, reading and building stuff for the house.

Comments and Discussions