Пример #1
0
        public StartGrpcProducer(EthereumRunnerContext context)
        {
            _context = context;
            EthereumSubsystemState newState = _context.Config <IGrpcConfig>().Enabled
                ? EthereumSubsystemState.AwaitingInitialization
                : EthereumSubsystemState.Disabled;

            SubsystemStateChanged?.Invoke(this, new SubsystemStateEventArgs(newState));
        }
Пример #2
0
        public StartKafkaProducer(EthereumRunnerContext context)
        {
            _context = context;
            _logger  = context.LogManager.GetClassLogger();
            EthereumSubsystemState newState = _context.Config <IKafkaConfig>().Enabled
                ? EthereumSubsystemState.AwaitingInitialization
                : EthereumSubsystemState.Disabled;

            SubsystemStateChanged?.Invoke(this, new SubsystemStateEventArgs(newState));
        }
Пример #3
0
 public SubsystemStateEventArgs(EthereumSubsystemState state)
 {
     State = state;
 }