Download presentation
Presentation is loading. Please wait.
Published byDeborah Marshall Modified over 9 years ago
6
Host Message Handlers Controller Model Bindings Result Conversion Action Method
7
Host Message Handlers Controller Model Bindings Result Conversion Action Method
8
Host Message Handlers Controller Model Bindings Result Conversion Action Method Delegating Handler Message Handlers Controller Dispatcher HTTP Response Message Routing Dispatcher HTTP Request Message x
9
Authorization Filters Action Filters Exception Filters Action Method Model Bindings Executing Executed Action Invoker Exception HTTP Response Message Controller Host Message Handlers Controller Model Bindings Result Conversion Action Method Authentication Filters x x
10
config.Formatters.Add(new MyCustomFormatter()); config.Services.Replace(typeof(IHttpActionSelector), new MyActionSelector()); class MyCustomControllerConfig : Attribute, IControllerConfiguration {…}
13
DEMO
16
var cacheControl = new CacheControlHeaderValue(); cacheControl.MaxAge = TimeSpan.FromSeconds(300); response.Headers.CacheControl = cacheControl;
17
Client sends a request Server adds ETag header to response Client caches response with ETag
18
Client sends a request with ETag Server compares ETag to resource’s version Identical Respond with HTTP 304 (Unmodified) Different Respond with the updated resource and Etag Client caches response with ETag
19
DEMO
29
HTTP Extensibility ErrorHandling Security
33
www.microsoft.com/learning http://developer.microsoft.com http://microsoft.com/technet http://channel9.msdn.com/Events/TechEd
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.