Тэги:
#appsettings.json #.net5 #dotnet5 #dotnet_core #.net_core #serializing_appsettings.json #asp.net_mvc_dotnet5 #asp.net_mvc_core #asp.net_mvc_appsettings #reading_config_values #extract_data_from_config #project_properties #c# #csharpКомментарии:
Is it possible to inject in model class instand of controller
ОтветитьPerfect tutorial without the fluff. Many thanks
ОтветитьGreat short tutorial, exactly that's what I have been looking for! Thanks!
ОтветитьVery succinct and well made - thanks for the video.
ОтветитьIf I use this configuration for my website and there I have a lot of differents configurations like timeouts, some boolean configs that interects with html & js and wathever, is there a problem if more of one person use it for its personal configuration? I mean, by example, George sets its timeout to 20000 ms. and save it in appSettings.json and then Anna from its personal account set it to 50000 ms. and save it... Will George have the Anna's configuration? Contemplating that the MVC application lives on the same server.
ОтветитьThis was a nice introduction to using the appsettings.json data within a controller. In my case, the controller was part of a WebAPI project, and after I suspended disbelief and just did what you said, it worked. Dependency Injection is still a new concept for me. Appreciate the help!
ОтветитьThank You
ОтветитьUn grand merci à toi !
Ответить