Windows Azure入门:使用 Azure Drive
2010-05-24 00:00:00 来源:WEB开发网最后,修改配置文件。在Cloud Service项目的ServiceConfiguration.cscfg中添加下列配置:
<?xml version="1.0"?>
<ServiceConfiguration serviceName="CloudDriveSampleWebRole" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
<Role name="WebRole1">
<Instances count="1" />
<ConfigurationSettings>
<Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" />
<Setting name="DataConnectionString" value="UseDevelopmentStorage=true" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
在ServiceDefinition.csdef中添加下列配置:
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudDriveSampleWebRole" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole1">
<LocalResources>
<LocalStorage name="InstanceDriveCache"
cleanOnRoleRecycle="false"
sizeInMB="300" />
</LocalResources>
<InputEndpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80" />
</InputEndpoints>
<ConfigurationSettings>
<Setting name="DiagnosticsConnectionString" />
<Setting name="DataConnectionString" />
</ConfigurationSettings>
</WebRole>
</ServiceDefinition>
更多精彩
赞助商链接