In a previous blog post, Windows Server AppFabric introduced a brief introduction to Windows Server AppFabric. In this article, I'll explain how to host WF4.0 applications in Windows Server AppFabric, and how to persist configuration and trace configurations.
First, I will use ASP.net and WF4.0 to implement a simple pizza ordering system. The application is then hosted on the Windows Server AppFabric to implement persistence, tracking, and so on.
Pizza Ordering System:
In two parts, one is the ASP.net application implementation UI interface, the other is WF service implementation business logic, the system is similar to the following figure.
Implement WF Service:
The business process is: The customer chooses the pizza type and fills in the pizza quantity in the ASP.net client, then submits to the WF service processing. The WF service queries the price based on the type of pizza selected, calculates the total price of pizza, and returns the price to the ASP.net client. The purchaser then confirms whether to order and, after confirmation, the WF service reports the corresponding information. This process I have divided into two parts.
The first part of the following figure: Get pizza price.