public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter, [CanBeNull] IEnumerable <LogCastBranchData> branches) : this(contextTime, formatter) { _allNodes = BuildNodes(branches, _rootNode); _hasBranches = _allNodes?.Count > 0; }
public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter) { _contextTime = contextTime ?? throw new ArgumentNullException(nameof(contextTime)); _formatter = formatter ?? throw new ArgumentNullException(nameof(formatter)); _rootNode = new BranchNode(RootBranchId, null); }
public override void Arrange() { Timer = GetContextTimer(TimeSpan.FromHours(-1)); Builder = new ContextSummaryBuilder(Timer, new DetailsFormatter()); Factory = new MessageFactory("DefaultLogger", Timer.StartedAt); }