//----------------------------------------------------------------------------------------------------------------------------------------------------- public ThreadLogAppender(IFramework framework, IThreadLogAnchor anchor, IThreadRegistry registry, IPlainLog plainLog) { _framework = framework; _anchor = anchor; _registry = registry; _plainLog = plainLog; }
//----------------------------------------------------------------------------------------------------------------------------------------------------- public ThreadLog( IFramework framework, IClock clock, IThreadRegistry registry, IThreadLogAnchor anchor, ThreadTaskType taskType, ActivityLogNode rootActivity) { _registry = registry; _anchor = anchor; _taskType = taskType; _rootActivity = rootActivity; _currentActivity = rootActivity; _startedAtUtc = framework.UtcNow; _logId = framework.NewGuid(); _correlationId = _logId; _node = framework.CurrentNode; _clock = clock; _rootActivity.AttachToThreadLog(this, parent: null); _registry.ThreadStarted(this); }