Está en la página 1de 25

NET 7 WEB DEVELOPER

Aplicaciones
Web ASP.NET
7.0 – Sesión 01

Instructor:
ERICK VELASCO
evelasco@galaxy.edu.pe
Luis Ruiz Caceres
Introducción a ASP.NET 7.0

Entendiendo Services y Pipelines en ASP.NET

Blazor WebAssembly y Blazor Server

Diferencias en tipos de Proyectos Web


Model POCO (Plain OLD CLR Objects)

Controllers

Componentes Razor

Integración CRUD
Introducción a ASP.NET 7.0

Gratis. Multiplataforma.
Open Source.
Un Framework para crear
aplicaciones y servicios web
con .NET y C#.

Instructor: ERICK VELASCO


Introducción a ASP.NET 7.0

¿Qué podemos hacer con ASP.NET Core?

Aplicaciones Servicios ASP.NET Aplicaciones


renderizadas en el Core renderizadas en el
Servidor Cliente

Instructor: ERICK VELASCO


Introducción a ASP.NET 7.0

Aplicaciones renderizadas en el Servidor

HTTP request

HTML Generado
dinámicamente ASP.NET
Core
Instructor: ERICK VELASCO
Introducción a ASP.NET 7.0

Servicios ASP.NET Core

HTTP request

JSON
ASP.NET
Core

Instructor: ERICK VELASCO


Introducción a ASP.NET 7.0

Aplicaciones renderizadas en el Cliente

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET

Todas las clases usadas por la aplicación

Permite modular la aplicación

Si se necesitan más dependencias, se inyectan

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET

Usando Services

Acoplamiento estrecho

UsersController LoggerService

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET

Inicializando dependencias
DataAccessService

LoggerService
UsersController

FileService

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET

Inyección de Dependencias (DI)

UsersController DI Container LoggerService

ILoggerService

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET

Registrando Servicios

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET
Manejando los requests con Middleware

Middleware creará una respuesta basada en la solicitud entrante

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET
Middleware Request Pipeline

El pipeline consiste en una serie de componentes Hay muchos componentes preconstruidos

Componentes que trabajan en el Request o el Response El endpoint middleware se sitúa al final

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET
Middleware Request Pipeline

Request

Middleware Middleware Endpoint


1 2 middleware

Response

Instructor: ERICK VELASCO


Entendiendo Services y Pipelines en ASP.NET
Middleware Request Pipeline

Instructor: ERICK VELASCO


Blazor WebAssembly y Blazor Server

Instructor: ERICK VELASCO


Blazor WebAssembly y Blazor Server

Instructor: ERICK VELASCO


Blazor WebAssembly y Blazor Server

Instructor: ERICK VELASCO


Diferencias entre aplicaciones Web
Plataformas de aplicaciones ASP.NET Core Otros
Entity
Framework
ASP.NET Core ASP.NET Core ASP.NET Core
MVC Razor Pages Blazor
ASP.NET Core
Identity

Plataforma ASP.NET Core

Kestrel Middleware Razor

Dependency
Model binding Logging
injection

Instructor: ERICK VELASCO


Basta de charlas, vamos al
código!!

También podría gustarte