2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
4
using NewRelic . Agent . Api ;
5
+ using NewRelic . Agent . Api . Experimental ;
5
6
using NewRelic . Agent . Configuration ;
6
7
using NewRelic . Agent . Core . AgentHealth ;
7
8
using NewRelic . Agent . Core . Aggregators ;
@@ -64,6 +65,7 @@ public class Agent : IAgent // any changes to api, update the interface in exten
64
65
private readonly ILogContextDataFilter _logContextDataFilter ;
65
66
private Extensions . Logging . ILogger _logger ;
66
67
private volatile IStackExchangeRedisCache _stackExchangeRedisCache ;
68
+ private readonly ISimpleSchedulingService _simpleSchedulingService ;
67
69
68
70
public Agent ( ITransactionService transactionService , ITransactionTransformer transactionTransformer ,
69
71
IThreadPoolStatic threadPoolStatic , ITransactionMetricNameMaker transactionMetricNameMaker , IPathHashMaker pathHashMaker ,
@@ -72,7 +74,7 @@ public Agent(ITransactionService transactionService, ITransactionTransformer tra
72
74
IBrowserMonitoringPrereqChecker browserMonitoringPrereqChecker , IBrowserMonitoringScriptMaker browserMonitoringScriptMaker ,
73
75
IConfigurationService configurationService , IAgentHealthReporter agentHealthReporter , IAgentTimerService agentTimerService ,
74
76
IMetricNameService metricNameService , Api . ITraceMetadataFactory traceMetadataFactory , ICATSupportabilityMetricCounters catMetricCounters ,
75
- ILogEventAggregator logEventAggregator , ILogContextDataFilter logContextDataFilter )
77
+ ILogEventAggregator logEventAggregator , ILogContextDataFilter logContextDataFilter , ISimpleSchedulingService simpleSchedulingService )
76
78
{
77
79
_transactionService = transactionService ;
78
80
_transactionTransformer = transactionTransformer ;
@@ -93,6 +95,7 @@ public Agent(ITransactionService transactionService, ITransactionTransformer tra
93
95
_catMetricCounters = catMetricCounters ;
94
96
_logEventAggregator = logEventAggregator ;
95
97
_logContextDataFilter = logContextDataFilter ;
98
+ _simpleSchedulingService = simpleSchedulingService ;
96
99
97
100
Instance = this ;
98
101
}
@@ -389,6 +392,11 @@ public Dictionary<string, string> GetLinkingMetadata()
389
392
390
393
#region ExperimentalApi
391
394
395
+ public ISimpleSchedulingService SimpleSchedulingService
396
+ {
397
+ get { return _simpleSchedulingService ; }
398
+ }
399
+
392
400
public IStackExchangeRedisCache StackExchangeRedisCache
393
401
{
394
402
get { return _stackExchangeRedisCache ; }
0 commit comments