This video covers the application startup class to configure the services, the dependency injection container, and the application pipeline.
- [Instructor] The application startup file…was specified in the web host builder,…and this is where we configure services…and also how the application will accept…and respond to HTTP requests.…The constructor in 1.0 and 1.1…creates a configuration builder,…user secrets, pretty much anything…having to do with configuration of the application.…The configure method deals with specifically…how the application responds the HTTP requests,…and then the configure services method…configures any application services…such as any DI framework contexts,…custom code that you need like repositories,…and any other features, as well as sets up…the dependency injection container.…
Now there is a fairly significant change…to this in 2.0, which we'll certainly cover…in that chapter, but it takes the configuration code…out of this class and moves it into…the void main method using DefaultWebHostBuilder.…So let's look at the Startup class,…and everything the Startup class needs…in injected into it by the framework.…So starting in the constructor…
- 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.