public ProfilingTypeSession() { _dispatcher = Dispatcher.CurrentDispatcher; _eventTree = new EventTreeCollection(); _eventFormatter = new EventFormatter(); _updatedEventSubscriber = new SafeEventSubscriber <EventArgs>(OnUpdated); }
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; }