用于c#的Azure Storage 2.0客户端使用Microsoft.Data.OData库.问题是在构建时我在我的构建文件夹中找到:
bin/de/Microsoft.Data.Edm.resources.dll
bin/de/Microsoft.Data.OData.resources.dll
bin/de/Microsoft.Data.Services.Client.resources.dll
bin/de/System.Spatial.resources.dll
bin/es/Microsoft.Data.Edm.resources.dll
bin/es/Microsoft.Data.OData.resources.dll
bin/es/Microsoft.Data.Services.Client.resources.dll
bin/es/System.Spatial.resources.dll
Run Code Online (Sandbox Code Playgroud)
等语言de,es,fr,it,ja,ko,ru,zh两次
这使得我发送到Azure云实例的软件包中的无用库大约需要3.2 Mo.我喜欢让我的包装尽可能快地发送.
我的应用程序将与Culture default和culture FR-FR一起使用
排除所有其他语言是否安全?如何在构建时实现此排除?
这是我的webconfig
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.1.0" newVersion="5.6.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Run Code Online (Sandbox Code Playgroud) 我是一个vb.net的家伙,很难阅读C#.我将C#Dapper编译为DLL并将其用于我的应用程序.我主要担心的是我认为我需要修改源代码,以便在每个SQL查询中默认集成SQL Azure的瞬态故障处理框架.
我可以在连接级别添加重试逻辑,因为它位于dapper的顶部,但不是在drapper类中嵌入的执行查询级别.
有人做过吗?
*更新*
在Dapper调用之上仅使用ReliableSqlConnection是否会处理执行非查询的重试逻辑?
以下是MS使用transietn fault hanling重试的示例代码
using Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling;
using Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.AzureStorage;
using Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure;
using System.Data;
...
using (ReliableSqlConnection conn = new ReliableSqlConnection(connString, retryPolicy))
{
conn.Open();
IDbCommand selectCommand = conn.CreateCommand();
selectCommand.CommandText =
"UPDATE Application SET [DateUpdated] = getdate()";
// Execute the above query using a retry-aware ExecuteCommand method which
// will automatically retry if the query has failed (or connection was
// dropped).
int recordsAffected = conn.ExecuteCommand(selectCommand, retryPolicy);
}
Run Code Online (Sandbox Code Playgroud)
这是Dapper代码的执行部分,使用相同的名称,但我想这是一个自定义执行函数
private static int ExecuteCommand(IDbConnection cnn, IDbTransaction transaction, string sql, …Run Code Online (Sandbox Code Playgroud) 昨天我上传了一个关于暂存实例的新部署,VIP交换,一切都很好,然后当我想像往常一样删除登台实例时...我在页面上没有看到任何删除按钮CLOUD SERVCIES> INSTANCES> STAGING的仪表板.今天仍然没有按钮.
没有办法联系MS而无需支付高级支持,我将仅使用一次.好吧,这对MS来说很聪明......我的意思是......我正在支付暂存实例,即使它没有任何用途.
试图使用REST API但我无法获得授权访问权限.
无论如何,我确实需要在暂存实例上使用此删除按钮!任何人 ?