Пример #1
0
        public static async Task Run([QueueTrigger("leedssharp", Connection = "AzureWebJobsStorage")] string myQueueItem, TraceWriter log)
        {
            log.Info($"C# Queue trigger function processed: {myQueueItem}");

            var users = await Repository.ListAsync();

            // Update index here
            await IndexingService.UpdateItemsInIndexAsync(users);
        }
        public async Task <ActionResult> PerformIndex()
        {
            var users = await Repository.ListAsync();

            // Update index here
            await IndexingService.UpdateItemsInIndexAsync(users);

            return(RedirectToAction("Index"));
        }