Beispiel #1
0
        public static async Task Run([QueueTrigger(QueueNames.RefreshReservationIndex)] string message, [Inject] ILogger <ReservationIndexRefreshHandler> log, [Inject] IReservationIndexRefreshHandler handler)
        {
            log.LogInformation($"Running reservation index refresh at: {DateTime.Now}");

            await handler.Handle();

            log.LogInformation($"Finished  reservation index refresh at: {DateTime.Now}");
        }
Beispiel #2
0
        public static string Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req, [Inject] ILogger <ReservationIndexRefreshHandler> log, [Inject] IReservationIndexRefreshHandler handler)
        {
            log.LogInformation("C# RefreshIndexHttp trigger function processed a request.");

            return("refresh");
        }