ROUTING in ASP.NET Core | Getting Started With ASP.NET Core Series
Vložit
- čas přidán 26. 08. 2020
- Hey Friends, Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints. Endpoints are units of executable code that handles requests coming to the application. Endpoints are defined and configured when the app starts
In this video, we will learn about the basics of routing and how it builds over the middleware pipeline in ASP NET Core. We will see how to define endpoints, how URLs are formed and routed. We will also learn about route templates and how to add constraints to routes. I will also show you how some of these core concepts translate to API Controllers and how to use them there as well.
🔗Routing in ASP NET Core - docs.microsoft.com/en-us/aspn...
Additional Watching
📹Dependency Injection in ASP NET Core - • DEPENDENCY INJECTION i...
📹Middleware in ASP NET Core - • MIDDLEWARE in ASP.NET ...
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !! - Jak na to + styl
Source code - rahulpnath.visualstudio.com/DefaultCollection/CZcams%20Samples/_git/routing
I dont mean to be offtopic but does any of you know of a method to log back into an instagram account?
I was stupid forgot the account password. I would appreciate any help you can offer me!
@Sawyer Kaleb Instablaster :)
@Moshe Houston I really appreciate your reply. I got to the site on google and Im in the hacking process atm.
I see it takes a while so I will get back to you later when my account password hopefully is recovered.
@Moshe Houston it worked and I finally got access to my account again. I'm so happy:D
Thank you so much, you saved my ass :D
@Sawyer Kaleb Glad I could help :D
Really it helps me to understand how the routing works!. Thank you
Glad to hear that! Do check out the full series where I explain each concept in detail. I'm sure you'll like it bit.ly/asp-net-core-series
It is fantastic! Thank You! very helpful
Thank you and glad you liked it Sumit!
It is fantastic! Thank You!
Thank you too!
Very well done again. Gives such a great idea about the whole routing configuration.. one small suggestion though. You can decrease the size of face cam as it sometimes interferes with the code you write..May be it will easier to keep it on the left side. Thanks
Sangram Nandkhile Thank you ! Feedback taken , next video I’ll make it smaller and try making it on left. Do let know if you have any other feedback or topic suggestions 👍
Hey Rahul, you are a star! you are videos are the best start point towards understand the topic in straight under 20 mins! not time wastage! you look serious teacher, Just relax little bit with a smile, Excellent work as usual! I am loving it ! I press the Ring bell for the first time!
Thanks, Jay for the nice comment and your feedback!
Yes, putting on a smile and being relaxed is one of my top feedback and something I want to improve. Off-camera I smile, laugh and make jokes a lot. When I switch on the camera to record, everything just hides away 😀 I will work on it.
@@RahulNath 😄, when you look at monitor, think you are teaching a friend, may be put some one picture next to it, who bring smile on your face when you look at it!
Jay Sure thanks for the tip - Will definitely work on this.
You are awesome. Keep posting
Thank you for motivating! I will 😀
Well explained
Thank you Vinod!
I'm beginner, We always match url with controller for processing http request but setting up middleware for routing how request will transform from configure service to controller. Should be write middleware for every controller matching route. ?
thank you sir
Most welcome Yash. You might like other videos in ASP NET Core Series czcams.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
And you can call me Rahul 😀
You are awesome 😍😍
Thank you so much 😀Hope you are enjoying the series bit.ly/asp-net-core-series
Hi Rahul, Any chance to make video on unit/integration testing using XUNIT. Thanks in advance.
I have a set of videos on AutoFixture and how that helps with Unit Testing. Check it out here czcams.com/play/PL59L9XrzUa-mItWClbGuMEK5oQpU2onCq.html. Also check out how to set up tests in DevOps pipeline if you are interested - czcams.com/video/FFxww1-M25E/video.html
I will do a video on integration testing soon.
Let know if any of that helps and if you have any specific scenaios in mind.
Thanks 🙏 again. Great videos. Do you have any video on how to work with dotnet 6 webapi with minimal option?
Glad you like it. I don't have one yet, but I am working on a few videos around that. Hopefully will publish soon! (Subscribe to be notified 😉)
Rahul you explain is very good and to the point thank for this video. can you make this video in hindi language?
Thank you for letting know Anupam. Hindi is not my main language so that won't be happening 😃 If you have any topics that you would like me to cover do let know, and I can do that in English.
I have one strong doubt. What's the difference between this UseRouting() and the normal Attribute routing that we do by mentioning [Route("attributeName")]
at controller level
are both different??
then which case what we should use?
UseRouting adds the required middleware to enable Routing to the ASP NET Pipeline. Do check out the Middleware video to get some more info. czcams.com/video/5eifH7LEnGo/video.html
Also other videos in this series might help bit.ly/asp-net-core-series
Do let me know if you have additional questions.
Please make a video any attribute routing
Thank you for the suggestsion, added to the list!
Good one Rahul for tutorials ! Can u share any web link that describe MVC Vs WebAPI routing difference on Asp.Net Core
Thanks,
The official docs should be a good start docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-3.1&WT.mc_id=AZ-MVP-5003875
Are you looking for anything in particular?
@@RahulNath , Thanks, actually i am looking for difference of MVC Vs WebAPI routing on dotnetcore
@@ganirban82 Don't think there is much difference there now. Are you looking/facing any particular issues?
Great content can you please help with MS Odata as well
Thank you Mayank! What in particular are you looking with Odata?
@@RahulNath Odata itself a broad topic we can start with basic entity sets
@@mayankrathore7558 Cool ok - added to my list!
Good one Rahul. Just a feedback. Have few mins on diff between Routing before .NET Core vs in .NET Core. This will set the context for the topic. And also, why so serious ;-)
Thank you. This video is specific to Routing in NET Core 3. Didn’t want to digress to other areas.
@@RahulNath Ahh, but giving bit history is good to have :-)
And yes working on my smile when the camera is on 😀
@@RahulNath :-)
please do a video about session, cookie, local storage
Sure will do! Thank again Akhil!
Hi Rahul can u make a video on rest API
Like rest vs soap
What in particular are looking for? Haven't used SOAP based services for a long time.
@@RahulNath I need a good understanding of rest API, means rest how it works, protocol like that
Parllely can u do videos about docker and k8
Thank you for the suggestion. I do have some plans on covering concepts around docker, but can't confirm by when though.