Tweaking Kestrel
Вставка
- Опубліковано 23 лис 2021
- Let's look at how to adjust the Kestrel settings in Visual Studio. See how in this 10-Minute Training video.
Full Courses: iamtimcorey.com
Source Code: leadmagnets.app/?Resource=Twe...
Mailing List: signup.iamtimcorey.com/
This is amazing. I have an idea bout the 10 mins series: when you create an hour long video, also create a 10 min version of it. If someone wants to go into depth then they can watch the hour long one as well. Just a thought. Amazing work as usual!
Thanks for the suggestion.
Is there a video how to troubleshoot Kestrel when it is running outside of Visual Studio?
My Blazor server project is running perfectly fine from VS, but after publishing it (into a local folder) it's not working at all.
does this apply to projects published in a folder on the PC, cause iv got more than one web project I would like to run outside Visual Studio ?
Nice video, thanks! If you don't mind me asking, could you please tell us which VS theme you are using?
The Dark theme that comes with Visual Studio.
That`s cool. Recently, I was trying minimal APIs and saw these settings in the project. Never know they are calling "Kestrel". It`s a bit hard for me to pronounce it, but still cool to know its name and usage.
Great!
Cool stuff. I would love to see a video when you talk a little more about events in blazor wasm. Just putting it out there, Stay fresh brother
I will add it to the list. Thanks for the suggestion.
Thank you. Could you do a video about Blazor Server prerendering creating circuits twice (or pre-rendering vs no pre-rendering)? I can see it on scoped services - they are instantiated twice and because scope is circuit, then probably circuits are created twice when pre-rendering. Circuits lifetime can be also watched using the built-in class CircuitHandler (overriding event handlers in a derived class).
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
For Blazor wasm application with Client (https:localhost:5001), Server (https:localhost:5001) and API (https:localhost:7201) projects in same solution, VS always launches API project at 5001 port though I specified different port 7201 and set as startup project; and how to instruct or force kestrel server to launch each app in specified port when multiple projects (Server and API) set as start-up. Pl advise what I am missing here?
How to pick different implementation of an interface based on environment? Should we place them inside if else condition in startup.cs ?
Yes, that's a good way to do it.
First off I love all of your videos. I was really hoping for some advanced training. This video should really be called kestrel basics. we went into environmental variables and ports. please let me know if you do anything more advanced I would love that
This is called 10-minute training for a reason - I'm just touching on a small slice of a topic. As for advanced training, what exactly are you thinking of? Kestrel is a developer web server designed for quick use. I'm not sure I see the value of pushing it beyond those bounds.
Is there any way to host a Blazor app using just kestrel, so it was accessible from clients machines in Network?
Yes, but you have to modify your computer's firewall, you need to update your Kestrel settings, and you need to reference your application by its IP address (instead of localhost) so that others can access it.
The sound on notification and comment animation at start is very annoying
I hate these and how they have become commonplace, they are so obnoxious. PS. something wrong with the title, it's just "- A TimCo Retail Manager Video"
I’m working on the level of that sound. I’ll lower it some for the next video. The benefit of the animation is that I don’t have to say “like, subscribe, etc.” so I do want a bit of sound to draw peoples’ attention but I don’t want to be distracting.
I would recommend covering vs code configuration as well which uses launch.config(c# extension) instead of launchsetting.config. because devs who choose kestrel are more likely to be cross platform (and use vscode)
I have covered using VSCode with C# code before ( ua-cam.com/video/r5dtl9Uq9V0/v-deo.html ) but I'll add that suggestion to the list.
Can you make a video about your opinion on Entity Framework 6
This video covers my thoughs on EF, regardless of the version: ua-cam.com/video/qkJ9keBmQWo/v-deo.html
The content name should be Kestrel settings. I think
Yep, I missed that in my edit. I fixed it now. Thanks.
So why do we have Kestrel and IIS
IIS came first. It was built into all versions of Windows (desktop and server). It was what we used to host all websites hosted on Windows. When .NET Core came around, they needed a new testing web server that worked cross-platform. That's why they created Kestrel.
@@IAmTimCorey Thank you very much
I love your videos but you did not show any tweaking here.
Perhaps a more appropriate title would have made things clearer.
Changing the launch name, the port, and the environment are all tweaks to the default Kestrel setup.
Cool
Thanks!
Random comment for UA-cam algorithm
Thanks!