Professional Documents
Culture Documents
NET
Florin Olariu
“Alexandru Ioan Cuza”, University of Iași
Department of Computer Science
ASP.NET Core
Agenda
DEMO - TailspinSpyworks
Web Technologies(1/17)
Web Technologies(2/17)
HTML
Web Technologies(3/17)
HTML
HTML5 has been a W3C recommendation since October 2014 (http
://w3.org/TR/html5)
Web Technologies(4/17)
HTML
HTML5 has been a W3C recommendation since October 2014 (http
://w3.org/TR/html5)
With the features of HTML5, several browser add-ins (such as Flash and
Silverlight) are not required anymore
Web Technologies(5/17)
HTML
HTML5 has been a W3C recommendation since October 2014 (http
://w3.org/TR/html5)
With the features of HTML5, several browser add-ins (such as Flash and
Silverlight) are not required anymore
HTML5 adds new semantic elements that search engines are better able to
use for analyzing the site(canvas, video, audio).
Web Technologies(6/17)
HTML
HTML5 has been a W3C recommendation since October 2014 (http
://w3.org/TR/html5)
With the features of HTML5, several browser add-ins (such as Flash and
Silverlight) are not required anymore
HTML5 adds new semantic elements that search engines are better able to
use for analyzing the site(canvas, video, audio).
HTML5 also defines APIs for drag-and-drop, storage, web sockets, and much
more.
Web Technologies(7/17)
CSS
Web Technologies(8/17)
CSS
In the earlier days of HTML the list item tag <li> defined whether list
elements should be displayed with a circle, a disc, or a square.
Web Technologies(9/17)
CSS
In the earlier days of HTML the list item tag <li> defined whether list
elements should be displayed with a circle, a disc, or a square.
You can use flexible selectors to select HTML elements, and you can define
styles for these elements.
Web Technologies(10/17)
CSS
In the earlier days of HTML the list item tag <li> defined whether list
elements should be displayed with a circle, a disc, or a square.
You can use flexible selectors to select HTML elements, and you can define
styles for these elements.
In Visual Studio 2015, the web project templates make use of Twitter
Bootstrap.
Web Technologies(11/17)
Demo
Empty project
Global.json
Project.json
Debugging
Startup file
Environment variables
launchSettings.json
Using Static Content(2/5)
Using Static Content(3/5)
Demo
Empty project
Add UserStaticFiles()
Create a static file and see the results
Using Dependency Injection with
ASP.NET(1/12)
IoC/DI mechanisms
Using Dependency Injection with
ASP.NET(2/12)
IoC/DI mechanisms
Using Dependency Injection with
ASP.NET(3/12)
IoC/DI mechanisms
Using Dependency Injection with
ASP.NET(4/12)
IoC/DI mechanisms
PROS CONS
Helps with adhering to the DI introduces a learning curve for
Dependency Inversion Principle (DIP) some developers
Allows objects to be easily swapped DI may require a significant overhaul
with replacements of existing projects
Facilitates the use of the Strategy Project timelines may not allow DI
Design Pattern (SDP)
Improves the testability of
applications
Enables loose coupling of software
components
Using Dependency Injection with
ASP.NET(5/12)
IoC/DI mechanisms
Using Dependency Injection with
ASP.NET(6/12)
IoC/DI mechanisms
Transient
Using Dependency Injection with
ASP.NET(7/12)
IoC/DI mechanisms
Transient
Scoped
Using Dependency Injection with
ASP.NET(8/12)
IoC/DI mechanisms
Transient
Scoped
Singleton
Using Dependency Injection with
ASP.NET(9/12)
IoC/DI mechanisms
Transient
Scoped
Singleton
Instance (special case of Singleton)
Using Dependency Injection with
ASP.NET(10/12)
IoC/DI mechanisms
Transient
Scoped
Singleton
Instance (special case of Singleton)
Using Dependency Injection with
ASP.NET(11/12)
IoC/DI mechanisms
Transient
Scoped
Singleton
Instance (special case of Singleton)
Constructor injection
Using Dependency Injection with
ASP.NET(11/12)
IoC/DI mechanisms
Transient
Scoped
Singleton
Instance (special case of Singleton)
Constructor injection
Action injection
Using Dependency Injection with
ASP.NET(12/12)
DEMO
Using controllers and views
Using IoC and DI
Verifying routes
Creating midlleware
Interview questions(1/1)
One more thing…(1/2)
One more thing…(2/2)