Example #1
0
 private async void DoWork(object state)
 {
     try
     {
         _logger.LogInformation("bot starter task started!");
         _botFactory.BuildBotProperties(_bot);
         await _bot.Start(false);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "An error occurred.");
     }
 }