using Managing.Application.Abstractions; using Managing.Application.ManageBot.Commands; using MediatR; using static Managing.Common.Enums; namespace Managing.Application.ManageBot { public class StopBotCommandHandler : IRequestHandler { private readonly IBotService _botService; public StopBotCommandHandler(IBotService botService) { _botService = botService; } public async Task Handle(StopBotCommand request, CancellationToken cancellationToken) { return await _botService.StopBot(request.Identifier); } } }