Presentation is loading. Please wait.

Presentation is loading. Please wait.

Host Message Handlers Controller Model Bindings Result Conversion Action Method.

Similar presentations


Presentation on theme: "Host Message Handlers Controller Model Bindings Result Conversion Action Method."— Presentation transcript:

1

2

3

4

5

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 {…}

11

12

13 DEMO

14

15

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

20

21

22

23

24

25

26

27

28

29 HTTP Extensibility ErrorHandling Security

30

31

32

33 www.microsoft.com/learning http://developer.microsoft.com http://microsoft.com/technet http://channel9.msdn.com/Events/TechEd

34

35

36


Download ppt "Host Message Handlers Controller Model Bindings Result Conversion Action Method."

Similar presentations


Ads by Google