Esempio n. 1
0
        public async Task <IActionResult> SingletonMemory(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = "singlememory/{level}")]
            HttpRequest req,
            int level,
            ILogger log)
        {
            level = GetLoadLevel(level);
            var loadMemory = new LoadMemory();
            await loadMemory.ExecuteCode(level);

            return(new OkObjectResult($"Cpu load function completed"));
        }
Esempio n. 2
0
        public async Task <IActionResult> Load(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = "load/{level}")]
            HttpRequest req,
            int level,
            ILogger log)
        {
            level = GetLoadLevel(level);
            var loadCpu    = new LoadCpu();
            var memoryLoad = new LoadMemory();
            await loadCpu.ExecuteCode(level);

            await memoryLoad.ExecuteCode(level);

            log.LogInformation($"Load CPU and Memory function completed");
            return(new OkObjectResult($"Load CPU and Memory function completed"));
        }