tailieunhanh - Light Point Apress Introducing dot NET_8

Visual Studio 2010 được thiết kế để cung cấp cho bạn với lộ trình đó. Nó phục vụ như một lớp sơn lót không vô nghĩa, sẽ giúp kinh nghiệm phát triển NET hiểu tác động của các khuôn khổ mới và công nghệ liên quan. Cuốn sách này sẽ giữ cho bạn cập nhật những thay đổi và giúp bạn nắm bắt cơ hội mới tự tin và nhanh chóng. | 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

TỪ KHÓA LIÊN QUAN