Exemplo n.º 1
0
        public void AddTrace(ITraceContent traceContent, INodeContext sourceNode)
        {
            var traceEvent = sourceNode.Tracer.CreateTraceEvent(traceContent, this.NextTraceSequence());

            _traceSubject?.PushValue(traceEvent);
            if (traceContent.Level == TraceLevel.Error && EndOfProcessTraceEvent == null)
            {
                EndOfProcessTraceEvent = traceEvent;
                Task.Run(_internalCancellationTokenSource.Cancel);
                // _traceSubject?.PushValue(traceEvent);
            }
        }
Exemplo n.º 2
0
 public TraceEvent(string jobName, Guid executionId, string nodeTypeName, string nodeName, ITraceContent content, int sequenceId)
 {
     this.ExecutionId  = executionId;
     this.JobName      = jobName;
     this.NodeTypeName = nodeTypeName;
     this.NodeName     = nodeName;
     this.Content      = content;
     this.DateTime     = DateTime.Now;
 }
Exemplo n.º 3
0
 public TraceEvent MapToTrace(ITraceContent content, int sequenceId)
 {
     return(new TraceEvent(_executionContext.JobName, _executionContext.ExecutionId, _typeName, _nodeName, content, sequenceId));
 }
Exemplo n.º 4
0
 public void Trace(ITraceContent content)
 {
     this._executionContext.Trace(new TraceEvent(_executionContext.JobName, _executionContext.ExecutionId, _typeName, _nodeName, content));
 }
 public void AddTrace(ITraceContent traceContent, INodeContext sourceNode)
 {
 }
Exemplo n.º 6
0
 public TraceEvent CreateTraceEvent(ITraceContent content, int sequenceId)
 => new TraceEvent(_jobName, _executionId, this._nodeContext?.TypeName ?? _typeName, _nodeName, content, sequenceId);