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