示例#1
0
        public async Task <IActionResult> ClearAllJobsAsync([FromQuery] string permission)
        {
            if (permission == "this is flakey security so this can be run as a public demo")
            {
                await _computationJobStatusService.ClearAllJobsAsync().ConfigureAwait(false);

                return(Ok());
            }
            return(Unauthorized());
        }