public StartGrpcProducer(EthereumRunnerContext context) { _context = context; EthereumSubsystemState newState = _context.Config <IGrpcConfig>().Enabled ? EthereumSubsystemState.AwaitingInitialization : EthereumSubsystemState.Disabled; SubsystemStateChanged?.Invoke(this, new SubsystemStateEventArgs(newState)); }
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)); }
public SubsystemStateEventArgs(EthereumSubsystemState state) { State = state; }