예제 #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;
 }