Exemplo n.º 1
0
        public async Task Run([TimerTrigger("0 0 10 * * *")] TimerInfo myTimer,
                              [Blob("collections", FileAccess.ReadWrite, Connection = "StorageConnectionString")] CloudBlobContainer cloudBlobContainer,
                              ILogger log)
        {
            log.LogInformation($"{nameof(GameImportHttpTrigger)} processed a request.");

            await _gameImport.ExecuteAsync(cloudBlobContainer, "raz0rf1sh");
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req,
            [Blob("collections", FileAccess.ReadWrite, Connection = "StorageConnectionString")] CloudBlobContainer cloudBlobContainer,
            ILogger log)
        {
            log.LogInformation($"{nameof(GameImportHttpTrigger)} processed a request.");

            await _gameImport.ExecuteAsync(cloudBlobContainer, "raz0rf1sh");

            return(new OkResult());
        }