@@ -50,8 +50,9 @@ public class ConnectionHandler : ConfigurationBasedService, IConnectionHandler
5050 private readonly Environment _environment ;
5151 private readonly IAgentHealthReporter _agentHealthReporter ;
5252 private readonly IEnvironment _environmentVariableHelper ;
53+ private readonly IFileWrapper _fileWrapper ;
5354
54- public ConnectionHandler ( ISerializer serializer , ICollectorWireFactory collectorWireFactory , IProcessStatic processStatic , IDnsStatic dnsStatic , ILabelsService labelsService , Environment environment , ISystemInfo systemInfo , IAgentHealthReporter agentHealthReporter , IEnvironment environmentVariableHelper , ICollectorWire dataRequestWire = null )
55+ public ConnectionHandler ( ISerializer serializer , ICollectorWireFactory collectorWireFactory , IProcessStatic processStatic , IDnsStatic dnsStatic , ILabelsService labelsService , Environment environment , ISystemInfo systemInfo , IAgentHealthReporter agentHealthReporter , IEnvironment environmentVariableHelper , IFileWrapper fileWrapper , ICollectorWire dataRequestWire = null )
5556 {
5657 _serializer = serializer ;
5758 _collectorWireFactory = collectorWireFactory ;
@@ -62,6 +63,7 @@ public ConnectionHandler(ISerializer serializer, ICollectorWireFactory collector
6263 _systemInfo = systemInfo ;
6364 _agentHealthReporter = agentHealthReporter ;
6465 _environmentVariableHelper = environmentVariableHelper ;
66+ _fileWrapper = fileWrapper ;
6567
6668 _connectionInfo = new ConnectionInfo ( _configuration ) ;
6769 _dataRequestWire = dataRequestWire ?? new NoOpCollectorWire ( ) ;
@@ -314,7 +316,7 @@ private ConnectModel GetConnectParameters()
314316 identifier ,
315317 _labelsService . Labels ,
316318 metadata ?? new Dictionary < string , string > ( ) ,
317- new UtilizationStore ( _systemInfo , _dnsStatic , _configuration , _agentHealthReporter ) . GetUtilizationSettings ( ) ,
319+ new UtilizationStore ( _systemInfo , _dnsStatic , _configuration , _agentHealthReporter , _fileWrapper ) . GetUtilizationSettings ( ) ,
318320 _configuration . CollectorSendEnvironmentInfo ? _environment : null ,
319321 _configuration . SecurityPoliciesTokenExists ? new SecurityPoliciesSettingsModel ( _configuration ) : null ,
320322 new EventHarvestConfigModel ( _configuration ) ,
0 commit comments