Exemplo n.º 1
0
        public static async void TriggerRedirectsSync(
            [TimerTrigger("%NODE_SYNC_SCHEDULE%")] TimerInfo myTimer,
            [Table(TableNames.Nodes)] CloudTable nodeTable,
            [Queue(QueueNames.SynchroniseRedirects)] ICollector <string> syncRedirectsQueue)
        {
            List <NodeEntity> nodes = await NodeEntity.get(nodeTable);

            if (nodes != null)
            {
                foreach (NodeEntity node in nodes)
                {
                    syncRedirectsQueue.Add(node.RowKey);
                }
            }
        }