Đang chuẩn bị liên kết để tải về tài liệu:
Introducing Windows Azure- P44

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

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 System.Collections.Generic using System.Linq using System.Text using System.Runtime.Serialization using System.ServiceModel 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 System.Collections.Generic using System.Linq using System.Text using System.Runtime.Serialization using System.ServiceModel using System.Diagnostics namespace CloudWorkflowServiceLibrary ServiceBehavior InstanceContextMode InstanceContextMode.Single public class ShoppingCartService IShoppingCartService public void Ping string message 213 CHAPTER 7 AZURE .NET SERVICES WORKFLOWS string.Format 0 Ping 1 DateTime.Now.ToString this.ToString Trace.WriteLine message Console.WriteLine 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 System.ServiceModel.dll and Microsoft.ServiceBus.dll. 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 X.509 certificate. Listing 7-2. Local WCF Service HostShoppingCartServiceHost using System using System.Collections.Generic using System.Linq using System.Text .

Đã 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.