public async Task <TodoTask> Handle(TaskCreateCommand request, CancellationToken cancellationToken) { var task = new TodoTask { Id = Nanoid.Nanoid.Generate(size: 10), Content = request.Content, Done = request.Done }; _repository.CreateTask(task); _logger.LogInformation($"TodoTask created {task.ToString()}"); return(await Task.Run(() => { return task; })); }