Example #1
0
 public ContextSummaryBuilder([NotNull] IContextTime contextTime, [NotNull] IDetailsFormatter formatter,
                              [CanBeNull] IEnumerable <LogCastBranchData> branches)
     : this(contextTime, formatter)
 {
     _allNodes    = BuildNodes(branches, _rootNode);
     _hasBranches = _allNodes?.Count > 0;
 }
Example #2
0
        public ILogCastEngine Create(ILogCastClientFactory clientFactory, IDetailsFormatter detailsFormatter)
        {
            var engine = new LogCastEngine(clientFactory, detailsFormatter);

            engine.RegisterInspector(new EnvironmentInspector(new EnvironmentContext()));

            return(engine);
        }
Example #3
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);
 }
Example #4
0
 public LogConfigSetup WithDetailsFormatter(IDetailsFormatter detailsFormatter)
 {
     DetailsFormatter = detailsFormatter ?? throw new ArgumentNullException(nameof(detailsFormatter));
     return(this);
 }
Example #5
0
 public LogCastDocumentFactory(IDetailsFormatter detailsFormatter)
 {
     _detailsFormatter = detailsFormatter ?? throw new ArgumentNullException(nameof(detailsFormatter));
 }
Example #6
0
 public LogCastEngine(ILogCastClientFactory clientFactory, IDetailsFormatter detailsFormatter)
 {
     _clientFactory      = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     _documentFactory    = new LogCastDocumentFactory(detailsFormatter);
     _dispatchInspectors = new List <ILogDispatchInspector>();
 }