Example #1
0
        protected async Task StopBot()
        {
            Logger.LogInformation("Stopping the bot");
            await BotService.StopBot();

            await BotService.ChangeBotState(BotState.Stopped);

            Logger.LogInformation("Stopped the bot");
        }
Example #2
0
        protected async Task StartBot()
        {
            Logger.LogInformation("Starting the bot");
            await BotService.StartBot();

            await BotService.ChangeBotState(BotState.Started);

            Logger.LogInformation("Started the bot");

            StateHasChanged();
        }