【发布时间】:2017-08-16 20:55:37
【问题描述】:
在本地运行的 Azure Functions 上绑定 Azure CosmosDB。使用此功能需要进行任何配置吗?
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using System.Collections.Generic;
namespace CDPCompare
{
public static class CallWS
{
[FunctionName("TimerTriggerCSharp")]
public static void Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, TraceWriter log, IEnumerable<dynamic> inputDocument)
{
foreach(var item in inputDocument)
{
log.Info(item);
}
}
}
}
【问题讨论】:
标签: c# azure azure-functions azure-cosmosdb