tailieunhanh - Apress introducing ASP.Net 4.0 with visual studio 2010_11
Tham khảo tài liệu 'apress introducing with visual studio 2010_11', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 16 WINDOWS AZURE ConfigurationSettings Setting name DiagnosticsConnectionString Setting name Message ConfigurationSettings WebRole ServiceDefinition 4. We will now define the actual value of this setting so open and add a new setting inside the ConfigurationSettings element Setting name Message value Hello Azure 5. While we are working with find the element that reads Instances count 1 and change it to Instances count 5 6. Changing the instances count tells Azure to create five instances of our application and simulates scaling our application to use five Azure nodes you will need to set this back before deployment depending on your pricing structure . This setting can be easily amended online note how easy it is to quickly scale up your application depending on demand. Microsoft recently announced Azure supports an API that allows you to do this programmatically. Your ServiceDefinition .cscfg should now look like xml version ServiceConfiguration serviceName xmlns http ServiceHosting 2008 10 ServiceConfiguration Role name Instances count 5 ConfigurationSettings Setting name DiagnosticsConnectionString value UseDevelopmentStorage true Setting name Message value Hello Azure ConfigurationSettings Role ServiceConfiguration Open and enter the following code using protected void Page_Load object sender EventArgs e string GreetingString message GreetingString at 7. Press F5 to run the application and you should see the greeting value we defined output to the screen with the current time and date. 417 CHAPTER 16 WINDOWS AZURE Logging and Debugging When running your Azure applications locally you can make full use of standard Visual Studio debugging facilities. However when applications are deployed to the cloud debugging
đang nạp các trang xem trước