tailieunhanh - Introducing Windows Azure- P44

Introducing Windows Azure- P44: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 Listing 7-1. ShoppingCart WCF Service Library using System using using using using using namespace CloudWorkflowServiceLibrary ServiceContract public interface IShoppingCartService OperationContract IsOneWay true void Ping DataContract public class ShoppingCartItem DataMember public string SKU DataMember public string ProductName DataMember public DateTime AddTime DataMember public int ItemCount using System using using using using using using namespace CloudWorkflowServiceLibrary ServiceBehavior InstanceContextMode public class ShoppingCartService IShoppingCartService public void Ping string message 213 CHAPTER 7 AZURE .NET SERVICES WORKFLOWS 0 Ping 1 message message endregion 2. Create a console application project to host the WCF service that we have just created. Name the project ShoppingCartServiceHost. Add a reference to and . This assembly can be found in C Program Files Microsoft .NET Services SDK Assemblies. Insert a few lines of code into the Main method body as Listing 7-2 shows. The setting options NetEventRelayBinding TransportClientEndpointBehavior and UserNamePassword credentials to authenticate to the .NET Service Bus are needed here because the workflow will be calling the service. There is not much difference from the Main methods we have seen in previous chapters the security authentication type can be switched from the user name and password to other types such as CardSpace or certificate. Listing 7-2. Local WCF Service HostShoppingCartServiceHost using System using 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.