Пример #1
0
 public override void EndScope()
 {
     if (this.Parent != null)
     {
         this.Scope?.Dispose();
         this.Scope = null;
     }
 }
Пример #2
0
        public override void BeginScope()
        {
            var parent = (RompScopedLogger)this.Parent;

            if (parent != null)
            {
                this.Scope = parent.Scope.CreateChildScope(this.Current.LocalName);
            }
            else
            {
                this.Scope = this.executer.RootExecutionLog.CreateChildScope(this.Current.LocalName);
            }

            if (this.initialMessages != null)
            {
                this.Scope.Log(this.initialMessages);
                this.initialMessages = null;
            }
        }
Пример #3
0
 public RompExecutionEnvironment(ScopedStatementBlock script, bool simulate)
 {
     this.plan                 = script;
     this.Simulation           = simulate;
     this.rootExecutionLogLazy = new Lazy <RompScopedExecutionLog>(() => RompScopedExecutionLog.Create(this.ExecutionId.GetValueOrDefault()));
 }