Exemplo n.º 1
0
        public static async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
            ILogger log)
        {
            var environmentVariables = new EnvironmentVariables();

            var delayMs = environmentVariables.GetInt("delayMs", 0);

            await Task.Delay(delayMs);

            return(new OkObjectResult(new ContentModel
            {
                Content = $"{environmentVariables.GetString("content", "Hello Jss Azure")} {DateTime.UtcNow.ToString("s")}",
                DelayMs = delayMs,
            }));
        }