Exemplo n.º 1
0
        public async void RunAsync()
        {
            _cWorker.Run(_worker, _config);

            while (true)
            {
                var workerResult = await _jWorker.Run(_worker, _config);

                System.Threading.Thread.Sleep(!workerResult
                    ? Constants.LOOP_ERROR_INTERVAL_MS
                    : Constants.LOOP_INTERVAL_MS);
            }
        }