// This function will get triggered/executed when a new message is written // on an Azure Queue called queue. public async Task ProcessQueueMessage([QueueTrigger("%APPSETTING_AzureQueueName%")] ScrapeSettings settings, TextWriter log) { var cts = new CancellationTokenSource(); await _scrapingService.RunAsync(settings, cts); }