public async Task <IActionResult> AddTaskToQueue([FromBody] CreateSampleTaskDto model, CancellationToken token)
        {
            await _taskService.AddTaskToQueue(model, token);

            return(Ok("Задача поставлена в очередь"));
        }
Beispiel #2
0
 /// <inheritdoc />
 public ValueTask AddTaskToQueue(CreateSampleTaskDto model, CancellationToken token)
 {
     _producer.Produce(model);
     return(new ValueTask());
 }