Ejemplo n.º 1
0
        private static TestPlatformTask CreateTestPlatformTask(TraceEvent data)
        {
            var task = new TestPlatformTask(data.TaskName, data.TimeStampRelativeMSec);

            task.PayLoadProperties = GetPayloadProperties(data);
            return(task);
        }
Ejemplo n.º 2
0
        private static void UpdateTask(TestPlatformTask task, TraceEvent data)
        {
            task.EventStopped = data.TimeStampRelativeMSec;
            var payLoadProperties = GetPayloadProperties(data);

            //Merging dictionaries look for better way
            foreach (var k in payLoadProperties.Keys)
            {
                if (!task.PayLoadProperties.ContainsKey(k))
                {
                    task.PayLoadProperties.Add(k, payLoadProperties[k]);
                }
            }
        }