The biggest change for middleware is the addition of the Configure and ConfigureServices capabilities in the WebHostBuilder. Learn how to add the middleware components in Program.cs instead of Startup.cs.
- [Instructor] The URL rewriting middleware has been updated. There's two main changes. The first change is how the IIS and Apache rules are acquired, and there's additional IIS URL Rewrite Module features supported, and those additional features are Global rules, rewrite maps, CustomResponse action and then Action: CustomResponse. There are still a few that aren't supported, but this is very, very close to full support.
So let's look at the change in how it is configured. 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 file names 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 on my machine, so that the code doesn't break when you load it.
Alright, now it is in a state that will work on your machine regardless of whether you have IIS or Apache.
- 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
Skill Level Intermediate
Set up the sample projects4m 49s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
- 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.