using Managing.Application.Abstractions; using Managing.Application.ManageBot.Commands; using MediatR; using Microsoft.Extensions.Logging; namespace Managing.Application.ManageBot; public class DeleteBotCommandHandler : IRequestHandler { private readonly ILogger _log; private readonly IBotService _botService; public DeleteBotCommandHandler(ILogger log, IBotService botService) { _log = log; _botService = botService; } public Task Handle(DeleteBotCommand request, CancellationToken cancellationToken) { return _botService.DeleteBot(request.Name); } }