Ejemplo n.º 1
0
        private void HookupEvents()
        {
            var dispatcher = Dispatcher.CurrentDispatcher;

            TraceManager.EventTrace += (evt, type) => {
                var info = GetDetails(evt);
                var data = new TraceEventDataViewModel(evt, type, info);
                lock (_tempEvents)
                    _tempEvents.Add(data);
            };
        }
Ejemplo n.º 2
0
 internal ProcessTraceEventViewModel(TraceEventDataViewModel evt) : base(evt.Data, evt.Type, evt.Details)
 {
     ProcessData = (ProcessTraceData)evt.Data;
     Debug.Assert(ProcessData != null);
 }