Esempio n. 1
0
        public void LogEvent(HandlerStackEvent stackEvent, string uiHierarchyPath, GeneratorPass currentPass)
        {
            var timestamp = DateTime.Now;
            var offset    = timestamp - logStartTime;
            var logItem   = new HandlerStackLogItem(this, stackEvent, offset, currentPass, uiHierarchyPath);
            var debugInfo = logItem.DebugInfo;

            this.Log.Add(logItem);
            GlobalLog.Add(logItem);
        }
Esempio n. 2
0
 public HandlerStackLogItem(HandlerStackItem handlerStackItem, HandlerStackEvent stackEvent, TimeSpan offset, GeneratorPass currentPass, string uiHierarchyPath)
 {
     this.HandlerStackItem  = handlerStackItem;
     this.HandlerStackEvent = stackEvent;
     this.StartOffset       = offset;
     this.CurrentPass       = currentPass;
     this.UIHierarchyPath   = uiHierarchyPath;
 }
Esempio n. 3
0
 public RedirectedGeneratorOptions(StreamWriter outputWriter, StreamWriter errorWriter, GeneratorPass generatorPass, bool noFileCreation)
 {
     this.PrintMode           = PrintMode.PrintUIHierarchyPathOnly;
     this.RecursionStackLimit = 255;
     this.OutputWriter        = outputWriter;
     this.ErrorWriter         = errorWriter;
     this.GeneratorPass       = generatorPass;
     this.NoFileCreation      = noFileCreation;
 }