Introducing Windows Azure- P14

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 using using using namespace CloudTableStorageService WebRole using CloudTableStorageService using CloudTableStorageService using CloudTableStorageService public partial class WebForml private AddressTableService addressTableService null protected void Page Load object sender EventArgs e if addressTableService new AddressTableService else DataBinding protected void btnAddAddress Click object sender EventArgs e if DataBinding private void DataBinding 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 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 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 typeof AddressTableContext account Now it is time to insert and query data from cloud table

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.