【问题标题】:Parsing the Azure Storage Account connection string with Xamarin.Android使用 Xamarin.Android 解析 Azure 存储帐户连接字符串
【发布时间】:2016-04-22 02:17:38
【问题描述】:

我正在创建一个需要连接到 Azure 存储帐户的应用程序,这需要您在应用程序设置中实现一个连接字符串,该字符串由帐户名称和帐户密钥组成。然后通过 CloudStorageAccount 类解析连接字符串。

我想我可以使用 AppSettingsReader 类的 GetValue 方法来获取字符串,正如 here 所解释的那样,但我不能将 System.Configuration 命名空间与 Xamarin.Android 一起使用,因为它针对 Monodroid。

我还能如何实现连接字符串以便通过 CloudStorageAccount 解析它?

【问题讨论】:

    标签: android azure xamarin.android azure-storage


    【解决方案1】:

    Xamarin 库不支持使用帐户密钥进行身份验证,因此连接字符串不是很有用。对配置设置没有依赖关系,因此您可以将凭据放在您想要的任何位置。

    【讨论】:

    • 这就是我想出来的。我把它们放在一个班级里。
    猜你喜欢
    • 2018-12-20
    • 2015-12-02
    • 2021-12-17
    • 2021-05-31
    • 1970-01-01
    • 2017-05-09
    • 2021-11-01
    • 2015-06-20
    • 1970-01-01
    相关资源
    最近更新 更多