public Agent(ITransactionService transactionService, ITransactionTransformer transactionTransformer, IThreadPoolStatic threadPoolStatic, ITransactionMetricNameMaker transactionMetricNameMaker, IPathHashMaker pathHashMaker, ICatHeaderHandler catHeaderHandler, IDistributedTracePayloadHandler distributedTracePayloadHandler, ISyntheticsHeaderHandler syntheticsHeaderHandler, ITransactionFinalizer transactionFinalizer, IBrowserMonitoringPrereqChecker browserMonitoringPrereqChecker, IBrowserMonitoringScriptMaker browserMonitoringScriptMaker, IConfigurationService configurationService, IAgentHealthReporter agentHealthReporter, IAgentTimerService agentTimerService, IMetricNameService metricNameService, Api.ITraceMetadataFactory traceMetadataFactory, ICATSupportabilityMetricCounters catMetricCounters) { _transactionService = transactionService; _transactionTransformer = transactionTransformer; _threadPoolStatic = threadPoolStatic; _transactionMetricNameMaker = transactionMetricNameMaker; _pathHashMaker = pathHashMaker; _catHeaderHandler = catHeaderHandler; _distributedTracePayloadHandler = distributedTracePayloadHandler; _syntheticsHeaderHandler = syntheticsHeaderHandler; _transactionFinalizer = transactionFinalizer; _browserMonitoringPrereqChecker = browserMonitoringPrereqChecker; _browserMonitoringScriptMaker = browserMonitoringScriptMaker; _configurationService = configurationService; _agentHealthReporter = agentHealthReporter; _agentTimerService = agentTimerService; _metricNameService = metricNameService; _traceMetadataFactory = traceMetadataFactory; _catMetricCounters = catMetricCounters; Instance = this; }
public TransactionFinalizer(IAgentHealthReporter agentHealthReporter, ITransactionMetricNameMaker transactionMetricNameMaker, IPathHashMaker pathHashMaker, ITransactionTransformer transactionTransformer) { _agentHealthReporter = agentHealthReporter; _transactionMetricNameMaker = transactionMetricNameMaker; _pathHashMaker = pathHashMaker; _transactionTransformer = transactionTransformer; _subscriptions.Add <TransactionFinalizedEvent>(OnTransactionFinalized); }
public void SetUp() { _agentHealthReporter = Mock.Create <IAgentHealthReporter>(); _transactionMetricNameMaker = Mock.Create <ITransactionMetricNameMaker>(); _pathHashMaker = Mock.Create <IPathHashMaker>(); _transactionTransformer = Mock.Create <ITransactionTransformer>(); _attribDefSvc = new AttributeDefinitionService((f) => new AttributeDefinitions(f)); _transactionFinalizer = new TransactionFinalizer(_agentHealthReporter, _transactionMetricNameMaker, _pathHashMaker, _transactionTransformer); }