tailieunhanh - ASP.NET AJAX Programmer’s Reference with ASP.NET 2.0 or ASP.NET 3.5 phần 5

Chương 14: Dịch vụ Web Tiêu thụ qua JSON Tin nhắn Nếu cả hai điều kiện được đáp ứng, điều này chỉ ra rằng khách hàng đã thực hiện các yêu cầu hiện tại để gọi một phương pháp máy chủ nằm trên một file aspx, và do đó, phương pháp Init các bước sau đây. | Chapter 14 Consuming Web Services Via JSON Messages If both of the conditions are met this indicates that the client has made the current request to invoke a server method that resides on an .aspx file and consequently the Init method takes the following steps 1. It invokes the CreateHandler static method on the RestHandler to create a RestHandler HTTP handler IHttpHandler restHandler As previously discussed the RestHandler HTTP handler knows how to process REST method call requests. 2. It calls the ProcessRequest method on this RestHandler HTTP handler to process the current REST method call request As discussed earlier this method invokes the server method. 3. It calls the CompleteRequest method on the current HttpApplication object to complete and shortcut the request and return the response to the client As you can see the current request does not go any further down the request processing pipeline. To understand the significance of this shortcut you need to take a look at a normal request processing pipeline where a normal request goes all the way down this pipeline which consists of the following steps 1. BeginRequest The current HttpApplication object raises the BeginRequest event when it begins processing the current request. An HTTP module can register an event handler for this event to perform tasks that must be performed at the beginning of the request. For example this is a good place for an HTTP module to perform URL rewriting. 2. AuthenticateRequest The current HttpApplication object raises the AuthenticateRequest event to enable interested HTTP modules and application code to authenticate the current request. 3. PostAuthenticateRequest The current HttpApplication object fires the PostAuthenticateRequest event after the request is authenticated. An HTTP module can register an event handler for this event to .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.