Beispiel #1
0
        public async Task SoldCheck()
        {
            while (true)
            {
                try
                {
                    await Task.Delay(TimeSpan.FromSeconds(_session.Interval));

                    var response = await _bot.CheckIfSold();

                    _logger.LogTrace(response.Message);
                }
                catch (Exception ex)
                {
                    _logger.LogCritical(ex, ex.Message);
                    Program.CoinbotCancellationToken.Cancel();
                }
            }
        }