Application Startup in ASP.NET Core

Slides:



Advertisements
Similar presentations
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
Advertisements

GSS MIDDLE EAST L.L.C. SMATV SOLUTIONS.
 Vijay Sen Senior Program Manager Microsoft Corporation ES14.
Dependency Injection and Model-View-Controller. Overview Inversion of Control Model-View-Controller.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
1 Week #10Business Continuity Backing Up Data Configuring Shadow Copies Providing Server and Service Availability.
Microsoft Virtual Academy Stacey Mulcahy | Technical Evangelist Christopher Harrison | Content Developer.
Slide 1 Extending Tuscany Raymond Feng Apache Tuscany committer.
Chapter 13Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 13 Network Administration and Server-side Configuration.
What’s New in ASP.NET 5 (vNext)? SoftUni Team Technical Trainers Software University Lean.NET stack for building modern web apps.
CLICK2EXPORT EXPORT TOOL FOR DYNAMICS CRM REPORTS.
Chapter 4 Request and Response. Servlets are controlled by the container.
ASP.NET 5 WHAT HAPPENED TO SESSION AND APPSETTINGS.
Build Robust Web Apps in the Real WakeUpAndCode.com * aka ASP.NET 5 before RC1.
Diploma of Website Development Getting Started With ASP.NET
By: Ahmed Marzouk OWIN & KATANA. Agenda A Brief History What is OWIN and Why? What is KATANA? OWIN Specifications OWIN/KATANA Goals.
Migrating to ASP.NET Core Challenges & Opportunities
DYNAMIC CONTENT DELIVERY
Introduction to .NET Florin Olariu
ASP.NET Unit Testing Unit Testing Web API SoftUni Team ASP.NET
Chapter Objectives In this chapter, you will learn:
Hello World Admir Tuzović Chief Technology App Impact
Microsoft Connect /28/ :21 AM
Delivering enterprise BI with Azure Analysis Services
ASP.NET MVC Introduction
ASP.NET Core 2.0 Fundamentals
James Dalziel & Ernie Ghilgione
The Modern ASP.NET Tech Stack!
Lean .NET stack for building modern web apps
Building Web Applications with Microsoft ASP
Best Service Providers - IPTV IOS
2018 New CheckPoint Exam Dumps Killtest
MVC in ASP.NET Core: The new kid on the block
Microsoft Build /11/2018 2:12 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Dive deep into ASP.NET Core 1.0
Microsoft Build /15/2018 6:28 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Introducing ASP.NET Core 1.0
REST Client Tutorial by Pavan Ethic Coder
Present by Andie Saizan, MCP
Introduction to AngularJS
SwE 455 Tutorial.
ديبــــاجــــــة: صادق الكنيست الإسرائيلي في تاريخ على اقتراح قانون دائرة أراضي إسرائيل (تعديل رقم7) – 2009 الذي يشكّل، عمليًا، خطة إصلاح شاملة.
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
ASP.NET 4 Core Runtime for Web Developers
From Development to Production: Optimizing for Continuous Delivery
Which best describes the relationship between classes and objects?
Image Gallery With SignalR
Web API with Angular 2 Front End
From Development to Production: Optimizing for Continuous Delivery
Dependency Injection in .Net Core
ASP.NET MVC Web Development
Hosted by Financial Statistics February 28, 2019
Strategic Sponsors Sponsors and Partners Gold Sponsors Silver Sponsors.
Trainer: Bach Ngoc Toan– TEDU Website:
Trainer: Bach Ngoc Toan– TEDU Website:
Trainer: Bạch Ngọc Toàn – TEDU Website:
SQL NOT NULL Constraint
Trainer: Bach Ngoc Toan– TEDU Website:
Trainer: Bach Ngoc Toan– TEDU Website:
Trainer: Bach Ngoc Toan– TEDU Website:
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
IIS and .NET Security Application Pools Pamella Smith June 18, 2009.
Development Environment Setup
Dependency Injection Mechanism
Concepts in ASP.NET Core App
Migrate ASP.NET Core 1.x to 2.0
SQL AUTO INCREMENT Field
Building Your First ASP.NET Core Web Application
Migrate ASP.NET Core 1.x to 2.0
ASP.NET Core Middleware Fundamentals
Presentation transcript:

Application Startup in ASP.NET Core #04# Application Startup in ASP.NET Core Design by: TEDU Trainer: Bach Ngoc Toan Website: www.tedu.com.vn Facebook: fb.com/teduchannel Please like videos and subscribe TEDU Channel to following the next video.

The Startup class ASP.NET Core apps require a Startup class. By convention, the Startup class is named "Startup". You specify the startup class name in the Main programs WebHostBuilderExtensions UseStartup<TStartup> method. You can define separate Startup classes for different environments, and the appropriate one will be selected at runtime The Startup class constructor can accept dependencies that are provided through dependency injection The Startup class must include a Configure method and can optionally include a ConfigureServices method, both of which are called when the application starts.

The Configure method The Configure method is used to specify how the ASP.NET application will respond to HTTP requests. The request pipeline is configured by adding middleware components to an IApplicationBuilder instance that is provided by dependency injection.

The Configure method

The ConfigureServices method The ConfigureServices method is optional; but if used, it's called before the Configure method by the runtime (some features are added before they're wired up to the request pipeline). For features that require substantial setup there are Add[Service] extension methods on IServiceCollection.

Services Available in Startup ASP.NET Core dependency injection provides application services during an application's startup. You can request these services by including the appropriate interface as a parameter on your Startup class's constructor or one of its Configure or ConfigureServices methods. Looking at each method in the Startup class in the order in which they are called, the following services may be requested as parameters: In the constructor: IHostingEnvironment, ILoggerFactory In the ConfigureServices method: IServiceCollection In the Configure method: IApplicationBuilder, IHostingEnvironment, ILoggerFactory, IApplicationLifetime