tailieunhanh - Introducing Windows Azure- P49

Introducing Windows Azure- P49:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 7 AZURE .NET SERVICES WORKFLOWS Media . Microsoft. NET authman Framework . . v . C i 0 Windows Communication Foundation Windows Workflow Foundation i SqlPersistenceService_Logic. sql 5qlPersistenceService_Schema sql. TrackingJ-ogic. sql Tracking_5chema sql Figure 7-14. Use the SQL scripts provided by the . Windows Workflow Foundation to set up the persistent SQL data table from the local development environment Create a console application as a test client for testing. This test application instantiates a unit test library class InvokeWorkflows and calls InvokeHttpWebRequest. In this test client we use HttpWebRequest to post or put a message via HTTP with the following steps to trigger the workflow state machine transaction from one state to another. Note that the client does not need to reference the assembly at all. That is why we can deploy an application that uses this approach to the cloud without dealing with authentication security trust issues. The sample client code is shown in Listing 7-11 and the following steps are the actions to simulate a shopping cart business flow. 1. Create a ShoppingCartItem object and call HttpWebRequest to post data to the workflow server. This should advance the workflow state machine from the initial state of waiting for shopping cart item state to shopping cart item place state. 2. Update the contents of the ShoppingCartItem and call HttpWebRequest to update the data in the shopping cart. The state in this activity should loop back to the same state by design and the workflow state machine continues to wait for the next event. 3. Create a credit card payment object and call HttpWebRequest to trigger the state machine to move to the check out state. The workflow state machine should finish at the shopping card closed state. Listing 7-11. Client Code UsingHttpWebRequest to Invoke the State Machine Workflow using System using using

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.