Ejemplo n.º 1
0
 public override void EndScope()
 {
     if (this.Parent != null)
     {
         this.Scope?.Dispose();
         this.Scope = null;
     }
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 public RompExecutionEnvironment(ScopedStatementBlock script, bool simulate)
 {
     this.plan                 = script;
     this.Simulation           = simulate;
     this.rootExecutionLogLazy = new Lazy <RompScopedExecutionLog>(() => RompScopedExecutionLog.Create(this.ExecutionId.GetValueOrDefault()));
 }