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

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

Introducing Windows Azure- P14: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 2 ACCESS CLOUD TABLE STORAGE using System.Web.UI using System.Web.UI.WebControls using System.Threading using System.Data.Services.Client namespace CloudTableStorageService WebRole using CloudTableStorageService WebRole.CloudTableStorageDataService using CloudTableStorageService WebRole.CloudTableStrorageDataEntity using CloudTableStorageService WebRole.CloudTableStorageDataContext public partial class WebForml System.Web.UI.Page private AddressTableService addressTableService null protected void Page Load object sender EventArgs e if Page.IsCallback addressTableService new AddressTableService else DataBinding protected void btnAddAddress Click object sender EventArgs e if Page.IsValid DataBinding private void DataBinding AddressView.DataBind 10. Set the CloudTableStorageService project as the startup project by rightclicking on the project node in Solution Explorer start the service from Visual Studio by pressing F5 with debugging or Ctrl F5 without debugging . Visual Studio will start the table storage service and launch the AddressTable.aspx page in the default browser as Figure 2-4 shows. 38 CHAPTER 2 ACCESS CLOUD TABLE STORAGE 11. Before we start testing what we have achieved so far I strongly recommend you do one more thing. The cloud storage table needs to be created in cloud storage either locally during development or remotely after being deployed at the time of the first data access request. To improve performance and avoid creating the table multiple times insert a piece of code into the static function ApplicationStartUponFirstRequest in Global.asax as shown in Listing 2-10. Listing 2-10. Call to Create Cloud Storage Table at the Time of Application Starting private static void ApplicationStartUponFirstRequest HttpContext context StorageAccountInfo account StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration TableStorage.CreateTablesFromModel typeof AddressTableContext account Now it is time to insert and query data from cloud table

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