Movatterモバイル変換


[0]ホーム

URL:


Shahriar Hossain, profile picture
Uploaded byShahriar Hossain
PPTX, PDF3,429 views

Middleware in Asp.Net Core

Microsoft Silverlight for Windows Phone is a new open-source and cross-platform framework for building modern cloud-based web applications using .NET. It allows for a seamless transition from on-premises to cloud applications and faster development cycles through modular and totally customizable design. The document then provides examples of how to modify request headers, add response headers, validate requests before reaching controllers, and log requests and responses in ASP.NET Core Web API using middleware and delegating handlers.

Related topics:

Embed presentation

Downloaded 22 times
Microsoft Silverlight for Windows PhoneTech bloggerMicrosoft Technical Community Speaker
 Handling request in WebApi Introducing lightweight ASP.NET Core
A new open-source and cross-platform framework for building moderncloud-based Web applications using .NET
Choose your Editorsand ToolsOpen Sourcewith Contributions Cross-PlatformOSSSeamless transitionfrom on-premises to cloudFaster Development CycleTotally ModularFast
How will you -• Modify request headers ?• Add a response header to responses ?• Validate requests before they reach the controller ?• Log the incoming requests and the outgoing responses ?
1. HttpServer2. HttpRoutingDispatcher3. HttpControllerDispatcher
Three simple steps :1. Inherit from DelegatingHandler2. Override the send async method3. Put it on the pipeline(Register your handler)
public class MessageHandler1 : DelegatingHandler{protected async override Task<HttpResponseMessage>SendAsync(HttpRequestMessage request,CancellationToken cancellationToken){var response = new HttpResponseMessage(HttpStatusCode.OK){Content = new StringContent(“Inside MessageHandler1")};var tsc = new TaskCompletionSource<HttpResponseMessage>();tsc.SetResult(response);return await tsc.Task;}}
public static class WebApiConfig{public static void Register(HttpConfiguration config){config.MessageHandlers.Add(new MessageHandler1());// Code Excerpt}}
ResponseRequest Middleware
FacebookPersonal BlogLinkedInhttp://LearnWithShahriar.wordpress.com
Thank You

Recommended

PDF
Restful Web Services
PDF
Spring MVC
PDF
MSA 전략 2: 마이크로서비스, 어떻게 구현할 것인가?
PPTX
Introduction to REST - API
PDF
Design patterns for microservice architecture
PPTX
Micro services Architecture
PPTX
Spring Security 5
PPTX
Express js
PPSX
Microservices Architecture - Cloud Native Apps
PDF
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
PDF
API for Beginners
PPTX
Introduction to ASP.NET Core
PPTX
Introduction to Spring Framework
PDF
REST API and CRUD
PDF
Understanding MicroSERVICE Architecture with Java & Spring Boot
PDF
Introduction to Firebase from Google
PDF
OAuth 2.0
PDF
What is REST API? REST API Concepts and Examples | Edureka
PDF
Spring Boot & Actuators
PPTX
.Net Core
PDF
Documenting your REST API with Swagger - JOIN 2014
PDF
ELB를 활용한 Socket.IO 멀티노드 구축사례
PPTX
Node.js Express
PPTX
Introduction to mvc architecture
PDF
Designing APIs with OpenAPI Spec
PPTX
DevOps introduction
PDF
Location Analytics - Real-Time Geofencing using Apache Kafka
PDF
Microservices avec Spring Cloud
PPTX
ASP.NET WEB API
PPTX
The ASP.NET Web API for Beginners

More Related Content

PDF
Restful Web Services
PDF
Spring MVC
PDF
MSA 전략 2: 마이크로서비스, 어떻게 구현할 것인가?
PPTX
Introduction to REST - API
PDF
Design patterns for microservice architecture
PPTX
Micro services Architecture
PPTX
Spring Security 5
PPTX
Express js
Restful Web Services
Spring MVC
MSA 전략 2: 마이크로서비스, 어떻게 구현할 것인가?
Introduction to REST - API
Design patterns for microservice architecture
Micro services Architecture
Spring Security 5
Express js

What's hot

PPSX
Microservices Architecture - Cloud Native Apps
PDF
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
PDF
API for Beginners
PPTX
Introduction to ASP.NET Core
PPTX
Introduction to Spring Framework
PDF
REST API and CRUD
PDF
Understanding MicroSERVICE Architecture with Java & Spring Boot
PDF
Introduction to Firebase from Google
PDF
OAuth 2.0
PDF
What is REST API? REST API Concepts and Examples | Edureka
PDF
Spring Boot & Actuators
PPTX
.Net Core
PDF
Documenting your REST API with Swagger - JOIN 2014
PDF
ELB를 활용한 Socket.IO 멀티노드 구축사례
PPTX
Node.js Express
PPTX
Introduction to mvc architecture
PDF
Designing APIs with OpenAPI Spec
PPTX
DevOps introduction
PDF
Location Analytics - Real-Time Geofencing using Apache Kafka
PDF
Microservices avec Spring Cloud
Microservices Architecture - Cloud Native Apps
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
API for Beginners
Introduction to ASP.NET Core
Introduction to Spring Framework
REST API and CRUD
Understanding MicroSERVICE Architecture with Java & Spring Boot
Introduction to Firebase from Google
OAuth 2.0
What is REST API? REST API Concepts and Examples | Edureka
Spring Boot & Actuators
.Net Core
Documenting your REST API with Swagger - JOIN 2014
ELB를 활용한 Socket.IO 멀티노드 구축사례
Node.js Express
Introduction to mvc architecture
Designing APIs with OpenAPI Spec
DevOps introduction
Location Analytics - Real-Time Geofencing using Apache Kafka
Microservices avec Spring Cloud

Similar to Middleware in Asp.Net Core

PPTX
ASP.NET WEB API
PPTX
The ASP.NET Web API for Beginners
PDF
Simplify QA Automation: Master API Testing with HTTPClient in C#
PDF
Android webservices
PPTX
Api 101
PPTX
Essential API Facade Patterns: Synchronous to Asynchronous Conversion (Episod...
PDF
Complete guidance book of Asp.Net Web API
PPTX
Windows Phone 8 - 12 Network Communication
PDF
Session 9 Android Web Services - Part 2.pdf
PPTX
The-Application Prog Interface-Communication-Lifecycle.pptx
PPTX
How to get full power from WebApi
PPTX
13 networking, mobile services, and authentication
PPTX
Web technology Unit-I Part D - message format
PPTX
Enjoying the Move from WCF to the Web API
PPTX
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
PPTX
Middleware
PPTX
How to build Simple yet powerful API.pptx
PDF
Unleash the power of HTTP with ASP.NET Web API
PPTX
Conociendo el consumo de datos en Windows Phone 8.1
PDF
Building sustainable RESTFul services
ASP.NET WEB API
The ASP.NET Web API for Beginners
Simplify QA Automation: Master API Testing with HTTPClient in C#
Android webservices
Api 101
Essential API Facade Patterns: Synchronous to Asynchronous Conversion (Episod...
Complete guidance book of Asp.Net Web API
Windows Phone 8 - 12 Network Communication
Session 9 Android Web Services - Part 2.pdf
The-Application Prog Interface-Communication-Lifecycle.pptx
How to get full power from WebApi
13 networking, mobile services, and authentication
Web technology Unit-I Part D - message format
Enjoying the Move from WCF to the Web API
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Middleware
How to build Simple yet powerful API.pptx
Unleash the power of HTTP with ASP.NET Web API
Conociendo el consumo de datos en Windows Phone 8.1
Building sustainable RESTFul services

More from Shahriar Hossain

PPTX
Microsoft Azure Overview
PPTX
Azure IoT Hub
PPTX
Azure redis cache
PPTX
Asp net core in azure
PPTX
Cloud terminology
PPTX
Intro to Azure Webjobs
PPTX
Managing API with Microsoft API Management
PPTX
Introduction to NoSql & Mongodb
PPTX
Getting started with azure storage
PPTX
Serverless computing with Microsoft Azure
PPTX
Cross platform app dev with xamarin forms
PPTX
Intro to cloud computing
PPTX
Cross platform app development with xamarin.forms
PPTX
Blazor first look
PPTX
Microsoft bot framework in azure
Microsoft Azure Overview
Azure IoT Hub
Azure redis cache
Asp net core in azure
Cloud terminology
Intro to Azure Webjobs
Managing API with Microsoft API Management
Introduction to NoSql & Mongodb
Getting started with azure storage
Serverless computing with Microsoft Azure
Cross platform app dev with xamarin forms
Intro to cloud computing
Cross platform app development with xamarin.forms
Blazor first look
Microsoft bot framework in azure

Recently uploaded

PDF
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PDF
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
PDF
ElyriaSoftware — Powering the Future with Blockchain Innovation
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PDF
Digit Expo 2025 - EICC Edinburgh 27th November
PDF
Unser Jahresrückblick – MarvelClient in 2025
PDF
API-First Architecture in Financial Systems
PDF
DevFest El Jadida 2025 - Product Thinking
PPTX
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
PPTX
Unit-4-ARTIFICIAL NEURAL NETWORKS.pptx ANN ppt Artificial neural network
PDF
The major tech developments for 2026 by Pluralsight, a research and training ...
PPTX
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PPTX
Chapter 3 Introduction to number system.pptx
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PDF
Six Shifts For 2026 (And The Next Six Years)
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
PPTX
Data Privacy and Protection: Safeguarding Information in a Connected World
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
ElyriaSoftware — Powering the Future with Blockchain Innovation
Vibe Coding vs. Spec-Driven Development [Free Meetup]
Usage Control for Process Discovery through a Trusted Execution Environment
Digit Expo 2025 - EICC Edinburgh 27th November
Unser Jahresrückblick – MarvelClient in 2025
API-First Architecture in Financial Systems
DevFest El Jadida 2025 - Product Thinking
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
Unit-4-ARTIFICIAL NEURAL NETWORKS.pptx ANN ppt Artificial neural network
The major tech developments for 2026 by Pluralsight, a research and training ...
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
wob-report.pptxwob-report.pptxwob-report.pptx
Chapter 3 Introduction to number system.pptx
Cybersecurity Best Practices - Step by Step guidelines
Six Shifts For 2026 (And The Next Six Years)
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
Data Privacy and Protection: Safeguarding Information in a Connected World

Middleware in Asp.Net Core

Editor's Notes

  • #7 ASP.NET frameworks - similar, but different
  • #8 The standard library allows us to innovate much more quickly and those innovations are picked up by all the platforms. Tooling innovation affects both app models & standard library
  • #13 HttpServer gets the request from the host.HttpRoutingDispatcher dispatches the request based on the route.HttpControllerDispatcher sends the request to a Web API controller.
  • #14 var response = await base.SendAsync(request, cancellationToken);         Debug.WriteLine("Process response handler 1 end");          return response;

[8]ページ先頭

©2009-2025 Movatter.jp