Exemple #1
0
 public ProfilingTypeSession()
 {
     _dispatcher             = Dispatcher.CurrentDispatcher;
     _eventTree              = new EventTreeCollection();
     _eventFormatter         = new EventFormatter();
     _updatedEventSubscriber = new SafeEventSubscriber <EventArgs>(OnUpdated);
 }
Exemple #2
0
 protected ClientUnitCollection()
 {
     _dispatcher      = Dispatcher.CurrentDispatcher;
     _lock            = new object();
     _collection      = new ObservableCollection <TC>();
     _dictionaryByUid = new Dictionary <uint, TC>();
     _dictionaryById  = new Dictionary <ulong, List <TC> >();
     _collectionView  = CollectionViewSource.GetDefaultView(_collection);
     _unitsUpdated    = new SafeEventSubscriber <DaemonUnitCollectionEventArgs <TD> >(OnUnitServerCollectionUpdated);
     _collection.CollectionChanged += OnCollectionChanged;
 }