public Task StartAsync()
        {
            Console.WriteLine("Settings:");
            Console.WriteLine(LogContextConversion.ConvertToString(_settingsRenderer.RenderSettings()));

            return(Task.CompletedTask);
        }
Example #2
0
        public async Task StartAsync()
        {
            _log.Info("Settings", _settingsRenderer.RenderSettings());

            _log.Info("Starting health monitor...");

            _healthMonitor.Start();

            _log.Info("Getting integration health...");

            var disease = await _healthProvider.GetDiseaseAsync();

            if (disease == null)
            {
                _log.Info("Integration is healthy");
            }
            else
            {
                _log.Warning($"Integration is unhealthy: {disease}");
            }

            _log.Info("Getting blockchain info...");

            var blockchainInfo = await _blockchainInfoProvider.GetInfoAsync();

            _log.Info("Blockchain info", blockchainInfo);

            _log.Info("Getting dependencies info...");

            var dependenciesInfo = await _dependenciesInfoProvider.GetInfoAsync();

            _log.Info("Dependencies info", dependenciesInfo);
        }
Example #3
0
        public Task StartAsync()
        {
            _log.Info("Settings", _settingsRenderer.RenderSettings());

            _log.Info("Configuring messaging...");

            _rabbitMqConfigurator.Configure();

            if (_irreversibleBlockMonitor != null)
            {
                _log.Info("Starting last irreversible block monitor...");

                _irreversibleBlockMonitor.Start();
            }

            return(Task.CompletedTask);
        }