我想处理一个输入文件并将其输出到某个位置,例如。FTP 或 Azure 存储。我正在尝试将 Azure Function 与 SaasFile 输入/输出一起使用。我收到以下错误:
2016-07-14T00:44:53 Welcome, you are now connected to log-streaming service.
2016-07-14T00:45:00.580 Script for function 'HttpTriggerCSharp1' changed. Reloading.
2016-07-14T00:45:00.580 Compiling function script.
2016-07-14T00:45:00.721 run.csx(24,25): error CS0622: Can only use array initializer expressions to assign to array types. Try using a new expression instead.
2016-07-14T00:45:00.721 Compilation failed.
这是我的函数签名:
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, string output, TraceWriter log)
绑定:
{
"bindings": [
{
"authLevel": "function",
"name": "req",
"type": "httpTrigger",
"direction": "in"
},
{
"name": "res",
"type": "http",
"direction": "out"
},
{
"type": "apiHubFile",
"name": "output",
"path": "path/{file}",
"connection": "ftp_FTP",
"direction": "out"
}
],
"disabled": false
}
我想我在运行签名中遗漏了一些东西。我在Azure 文档中找不到它。
我需要帮助弄清楚如何使用 FTP 和 Azure 存储进行处理。谢谢你的帮助。