<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            微軟認證考試技巧:windowsazure常見問題處理及技巧

            時間:2024-08-08 01:04:09 微軟認證 我要投稿
            • 相關推薦

            微軟認證考試技巧:windowsazure常見問題處理及技巧

              「1」。 Some Tips for table service.

            微軟認證考試技巧:windowsazure常見問題處理及技巧

              「1.1」 修改最大連接數,如果需要。

              Config file:

               <system.net>
             
                <connectionManagement>
             
                <add address = "*" maxconnection = "24" />
             
                </connectionManagement>
             
                </system.net>

              代碼:

              ServicePointManager.DefaultConnectionLimit = 24;

              「1.2」 Turn off 100-continue

              Config file:

                <system.net>
             
                <settings>
             
                <servicePointManager expect100Continue="false" />
             
                </settings>
             
                </system.net>

              代碼:

              ServicePointManager.Expect100Continue = false;

              「1.3」 關閉Context跟蹤,如果用不上的環境(比如都是查詢)

              context.MergeOption = MergeOption.NoTracking;

              「1.4」 合理利用PartitionKey & RowKey

              具體參見: More about “PartitionKey”&"RowKey“ in windows azure table storage

              <2> using customer httphandler in windows azure webrole, 在webrole中使用自定義HttpHandler.

              由于部署以后的webrole實際運行在IIS7上面,如果您配置的是:
              <system.web>
              <httpHandlers>

              將會報錯,正確的配置是在節點中。

              <3> 使用role配置文件里的storage連接信息創建client account時,使用以下代碼:

              CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString");

              出現以下錯誤:

              Exception: SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used.

              解決方案:

              在 public override bool OnStart()中加入以下代碼:

              CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>

              {

              configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));

              RoleEnvironment.Changed += (anotherSender, arg) =>

              {

              if (arg.Changes.OfType()

              。Any((change) => (change.ConfigurationSettingName == configName)))

              {

              if (!configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)))

              {

              RoleEnvironment.RequestRecycle();

              }

              }

              };

              });

            【微軟認證考試技巧:windowsazure常見問題處理及技巧】相關文章:

            微軟認證考試技巧10-22

            關于微軟認證考試技巧10-08

            微軟認證考試技巧:MCSA認證考試經驗06-17

            微軟認證考試做題技巧06-30

            微軟認證考試技巧:MCSE考試經驗08-08

            微軟認證考試技巧:數據庫06-07

            微軟認證考試技巧:MCSE自適應考試09-06

            2017年微軟認證綜合輔導考試技巧10-20

            微軟認證考試之“另類”程序卸載有技巧10-23

            微軟認證考試技巧:如何成為一名MCT05-03

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看