Пример #1
0
 public DataReaderListener(ISubject <T, T> subject, IScheduler scheduler)
 {
     _subject   = subject;
     _scheduler = scheduler;
     _dataSeq   = new DDS.UserRefSequence <T>();
     _infoSeq   = new DDS.SampleInfoSeq();
 }
 public InstanceDataReaderListener(IObserver <IGroupedObservable <TKey, T> > observer,
                                   Dictionary <TKey, DDSKeyedSubject <TKey, T> > dict,
                                   Func <T, TKey> keySelector,
                                   IEqualityComparer <TKey> comparer,
                                   Dictionary <DDS.InstanceHandle_t, TKey> handleKeyDict,
                                   IScheduler sched,
                                   bool externalSubDict)
 {
     _externalSubDict = externalSubDict;
     _observer        = observer;
     _scheduler       = sched;
     _keyedSubDict    = dict;
     _keySelector     = keySelector;
     _comparer        = comparer;
     _handleKeyDict   = handleKeyDict;
     _dataSeq         = new DDS.UserRefSequence <T>();
     _infoSeq         = new DDS.SampleInfoSeq();
 }
Пример #3
0
 public DataReaderListener(Demultiplexer <T> demux)
 {
     demultiplexer = demux;
     dataSeq       = new DDS.UserRefSequence <T>();
     infoSeq       = new DDS.SampleInfoSeq();
 }