Тёмный

Useful Configuration Management Tips And Tricks (In ASP.NET Core Application) 

DotNet Core Central
Подписаться 27 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@expertreviews1112
@expertreviews1112 4 года назад
Extra ordinarily good and informative video. Dropped a huge like and subscribed!!!! More power to you!!!
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Expert Reviews thanks so much for watching!
@aj.arunkumar
@aj.arunkumar 4 года назад
really good one. experienced people like me also want interesting tutorial content... but all there ever is beginner level tutorials which is frustrating. Best wishes for keeping up your work, thanks
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Arun Kumar A.J thanks for watching!
@F2H16
@F2H16 3 года назад
Awesome! Clear and lucid.Thanks man.
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@A.K Hasanuzzaman, thanks for watching!
@RAM-ff8dy
@RAM-ff8dy 4 года назад
Excellent video...is it possible to create long video on Asp net core API project from scratch to finish..cover all the topics like automappers, repository pattern, ef core, validations, swagger, jwt token, filters etc?? It would be pretty helpful...
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@RAM yeah, it will take some time but I will put it in my calendar for August 2020
@dloperab
@dloperab 3 года назад
Very useful video...thank you!!!
@eliassal1
@eliassal1 3 года назад
Really very useful talk, so many thanks, I learned a lot
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@Salam Elias, thanks!
@expertreviews1112
@expertreviews1112 4 года назад
I'm not able to get the description of CreateDefaultBuilder() at 0:44... Could you tell how you brought that mini screen with details about CreateDefaultBuilder? thanks...
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Expert Reviews, this description window comes when I hover over the CreateDefaultBuilders method. And its probably because the version of the Visual Studio I am using supports it. My version info: Microsoft Visual Studio Professional 2019 Version 16.6.2
@eliassal1
@eliassal1 3 года назад
Yes, another great video. What is the difference with using ConfigurationBuilder as I am having a real issue (I hope you an answer if you have time). I have a line of code like this var builder = new ConfigurationBuilder() .SetBasePath(contentRootPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: false) .AddEnvironmentVariables(); but it is not reading the appsettings.json, I googled found some ideas like "copyoutput=always for the file, make appsettings.dev similar to the appsettings....nothing is helping and it just does not read the
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@Salam Elias, for config files, "copuoutput=copy always or copy if newer", otherwise it will not be copied to the output folder from which the application executes. Otherwise, it should just work. If you can share the code in GitHub or somewhere I can take a look when I get some time.
@eliassal1
@eliassal1 3 года назад
@@DotNetCoreCentral In fact, you can get the whole code on the article www.red-gate.com/simple-talk/dotnet/c-programming/getting-started-with-cqrs-part-3/ which started my interest in RabbitMQ
@eliassal1
@eliassal1 3 года назад
I forgot to mention code is in ANQPEventSubscriber.cs, following the statement I indicated above here is the line failing builder.Build().GetSection("amqp").Bind(factory);
@eliassal1
@eliassal1 3 года назад
@@DotNetCoreCentral I replaced the statement above AddJsonFile("appsettings.json", optional: false, reloadOnChange: false) by AddJsonFile("appsettings.Development.json", optional: false, reloadOnChange: false), it worked fine, however, in startup.cs when I do Console.WriteLine(Configuration.GetValue("amqp:uri")); I get the right value without any problem, strange no?
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@@eliassal1 did you set the ASPNETCORE_ENVIRONMENT environment variable in the project debug settings? that is needed, and it needed to be set up with the appropriate environment. And you do not need to add appsettings.development.json, this should be based on the environment variable you set.
@JJC2611
@JJC2611 3 года назад
Great video. Thanks!
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@Jay C, thanks for watching!
@shuhaib864
@shuhaib864 4 года назад
Very informative
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Muhammed Shuhaib thanks for watching!
@shuhaib864
@shuhaib864 4 года назад
Can you please do a video series about Ocelote Api Gateway and micro services?
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@@shuhaib864 I can definitely try it out.
@vemareddys
@vemareddys 4 года назад
How to read environment variables from file instead of project configuration
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Vema Reddy, environment variables should be set up in an environment. For Windows box, its in the settings for environment variables (You can type Environment Variable in windows search to get it). If you are using Linux and Docker, then it will be set at a container level, and that is how I use it in production. The project configuration is just for testing purposes and should not be used for production. And we should not use a file as well, since that's like yet another configuration file, not really an environment variable. But if we have to use that, maybe you can just use System.IO namespace classes for it.
@vemareddys
@vemareddys 4 года назад
@@DotNetCoreCentral thank you
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@@vemareddys you are welcome!
@anwarchn
@anwarchn 4 года назад
Bit fast.
@DotNetCoreCentral
@DotNetCoreCentral 4 года назад
@Anwar Sadath thanks for watching! And thanks for the feedback.
@anwarchn
@anwarchn 4 года назад
@@DotNetCoreCentral - Post Visual Studio Code with Dot Net Core ?
@vacalepic6768
@vacalepic6768 3 года назад
IOPTIONS is not a good way
@DotNetCoreCentral
@DotNetCoreCentral 3 года назад
@vaca lepic, thanks for watching the video.
Далее
IEnumerable VS IQueryable (in .NET Core)
10:52
Просмотров 11 тыс.
If Your Tech Job is Comfortable, You're in Danger
20:57