コード例 #1
0
        public async Task <ActionResult <SortJob> > EnqueueJob(int[] values)
        {
            var pendingJob = new SortJob(
                id: Guid.NewGuid(),
                status: SortJobStatus.Pending,
                duration: null,
                input: values,
                output: null);

            await _sortJobProcessor.ProcessAsync(pendingJob);

            return(Ok(pendingJob));
        }