【发布时间】:2017-03-08 17:14:03
【问题描述】:
我正在尝试使用我的应用设置为我的 Azure 函数添加一些自定义绑定。我只需要从我的设置中接收字符串。
我想从我的设置中获取 simpleValue。
{
"bindings": [
{
"name": "someValue",
"type": "stringSetting",
"connection": "simpleValue",
"direction": "in"
}
],
"disabled": false
}
在 Run 方法中获取它:
static void GetOrders(TraceWriter log, string someValue)
{
log.Info(someValue);
}
有没有可能。也许还有其他方法可以做到这一点?
【问题讨论】:
标签: c# azure binding settings azure-functions