Ejemplo n.º 1
0
        public async Task Start(CancellationToken cancellationToken)
        {
            if (_logger.IsDebug)
            {
                _logger.Debug("Initializing Ethereum");
            }

            EthereumStepsManager stepsManager = new EthereumStepsManager(_context);
            await stepsManager.DiscoverAll(cancellationToken);

            await stepsManager.InitializeAll(cancellationToken);

            string infoScreen = ThisNodeInfo.BuildNodeInfoScreen();

            if (_logger.IsInfo)
            {
                _logger.Info(infoScreen);
            }
        }
Ejemplo n.º 2
0
        public async Task Start()
        {
            if (_logger.IsDebug)
            {
                _logger.Debug("Initializing Ethereum");
            }
            _context.RunnerCancellation = new CancellationTokenSource();
            _context.DisposeStack.Push(_context.RunnerCancellation);

            EthereumStepsManager stepsManager = new EthereumStepsManager(_context);

            stepsManager.DiscoverAll();
            await stepsManager.InitializeAll();

            string infoScreen = ThisNodeInfo.BuildNodeInfoScreen();

            if (_logger.IsInfo)
            {
                _logger.Info(infoScreen);
            }
        }