Read an app setting in my .Net 5 application without using DI

前端 未结 0 406
温柔的废话
温柔的废话 2021-01-25 03:58

I created an MVC application using .Net 5. Then I created a custom Attribute should read some settings from appsettings.json. Here a working solution:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题