public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter, [CanBeNull] IEnumerable <LogCastBranchData> branches) : this(contextTime, formatter) { _allNodes = BuildNodes(branches, _rootNode); _hasBranches = _allNodes?.Count > 0; }
public ILogCastEngine Create(ILogCastClientFactory clientFactory, IDetailsFormatter detailsFormatter) { var engine = new LogCastEngine(clientFactory, detailsFormatter); engine.RegisterInspector(new EnvironmentInspector(new EnvironmentContext())); return(engine); }
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 LogConfigSetup WithDetailsFormatter(IDetailsFormatter detailsFormatter) { DetailsFormatter = detailsFormatter ?? throw new ArgumentNullException(nameof(detailsFormatter)); return(this); }
public LogCastDocumentFactory(IDetailsFormatter detailsFormatter) { _detailsFormatter = detailsFormatter ?? throw new ArgumentNullException(nameof(detailsFormatter)); }
public LogCastEngine(ILogCastClientFactory clientFactory, IDetailsFormatter detailsFormatter) { _clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory)); _documentFactory = new LogCastDocumentFactory(detailsFormatter); _dispatchInspectors = new List <ILogDispatchInspector>(); }