The biggest change for middleware is the addition of the Configure and ConfigureServices capabilities in the WebHostBuilder. In this video, learn how to add the middleware components in Program.cs instead of Startup.cs.
- [Instructor] The URL rewriting middleware has been updated…with two main changes.…The first change is how the IIS…and Apache rules are acquired,…and the second change is additional IIS URL…Rewrite Module features supported inherently…in the framework.…The additional IIS features include global rules,…Rewrite maps, CustomResponse action,…as well as action, CustomResponse.…
There are still a few that aren't supported,…but this is very, very close to full support.…Updated in ASP.NET Core 2.1 is the addition of middleware…to intelligently redirect to HTTPS,…based on the presence of configuration…or bound server ports.…So here we have the code for the Rewrite middleware,…and we are just doing a slightly different way…of pulling those files out.…
And instead of having the filenames here in the AddApache…or AddIIS Rewrite, we're just handing it a StreamReader.…So a minor change, but an important one to note…if you are using those features.…I'm going to go ahead and comment many of these out…because I don't have Apache or IIS Rewrite running…
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
- Web API improvements
- Support for creating GDPR-compliant applications
Skill Level Intermediate
Use the exercise files3m 37s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
5. ASP.NET Core 2.1
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.