⑴【.】 合理利用PartitionKey & RowKey
⑵具体参见: More about “PartitionKey”&"RowKey” in windows azure table storage
⑶<2> using customer httphandler in windows azure webrole, 在webrole中使用自定义HttpHandler.
⑷由于部署以后的webrole实际运行在IIS上面,如果您配置的是:
⑸
⑹
⑺将会报错,正确的配置是在节点中。
⑻
⑼
⑽
⑾
⑿
⒀
⒁<3> 使用role配置文件里的storage连接信息创建client aount时,使用以下代码:
⒂CloudStorageAount aount = CloudStorageAount.FromConfigurationSetting("DataConnectionString");
⒃Exception: SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used.
⒄在 public override bool OnStart()中加入以下代码:
⒅CloudStorageAount.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平台是微软自主研发的一个云服务平台,是很专业性的产品,所以平时生活中我们也很少会遇到这种技术层面的东西,可以随便看看,当做多认识一个新鲜的事物.