相关疑难解决方法(0)

Azure功能如何将应用程序设置添加到绑定

我正在尝试使用我的Azure功能的应用程序设置添加一些自定义绑定.我需要从我的设置中只收到一个字符串.

在此输入图像描述

我想从我的设置中获得simpleValue.

{
   "bindings": [
    {
      "name": "someValue",
      "type": "stringSetting",
      "connection": "simpleValue",
      "direction": "in"
    }
  ],
  "disabled": false
}
Run Code Online (Sandbox Code Playgroud)

并在Run方法中获取它:

static void GetOrders(TraceWriter log, string someValue)
{
    log.Info(someValue);
}
Run Code Online (Sandbox Code Playgroud)

它甚至可能吗?也许有其他方法可以做到这一点?

c# settings binding azure azure-functions

11
推荐指数
2
解决办法
8130
查看次数

标签 统计

azure ×1

azure-functions ×1

binding ×1

c# ×1

settings ×1