public MainWindow(Framework framework) { m_mapper = framework.Mapper; m_concentrator = framework.Concentrator; m_subscriber = framework.Subscriber; InitializeComponent(); }
public Framework(Func <Framework, IMapper> mapperFactory) { SignalLookup = new SignalLookup(); SignalBuffers = new ConcurrentDictionary <MeasurementKey, SignalBuffer>(); AlignmentCoordinator = new AlignmentCoordinator(SignalBuffers); Mapper = mapperFactory(this); Concentrator = new Concentrator(Mapper); Subscriber = new Subscriber(Concentrator); }
public Subscriber(Concentrator concentrator) { m_concentrator = concentrator; m_dataSubscriber = new DataSubscriber(); m_dataSubscriber.ConnectionEstablished += DataSubscriber_ConnectionEstablished; m_dataSubscriber.MetaDataReceived += DataSubscriber_MetaDataReceived; m_dataSubscriber.NewMeasurements += DataSubscriber_NewMeasurements; m_dataSubscriber.StatusMessage += DataSubscriber_StatusMessage; m_dataSubscriber.ProcessException += DataSubscriber_ProcessException; }