コード例 #1
0
 //-----------------------------------------------------------------------------------------------------------------------------------------------------
 public ThreadLogAppender(IFramework framework, IThreadLogAnchor anchor, IThreadRegistry registry, IPlainLog plainLog)
 {
     _framework = framework;
     _anchor = anchor;
     _registry = registry;
     _plainLog = plainLog;
 }
コード例 #2
0
ファイル: ThreadLog.cs プロジェクト: votrongdao/NWheels
        //-----------------------------------------------------------------------------------------------------------------------------------------------------
        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);
        }