Skip to content

Commit

Permalink
Update to allow a Device file to override the Device read by a Http C…
Browse files Browse the repository at this point in the history
…lient Adapter
  • Loading branch information
PatrickRitchie committed Apr 24, 2023
1 parent 6ba1e77 commit b9a3c8b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@ protected override void OnStartAgentBeforeLoad(IEnumerable<DeviceConfiguration>
agentClient.OnClientStopped += (s, e) => AgentClientStopped(agentClient);
agentClient.OnStreamStarted += (s, query) => AgentClientStreamStarted(agentClient, query);
agentClient.OnStreamStopped += (s, e) => AgentClientStreamStopped(agentClient);
agentClient.OnProbeReceived += (s, doc) => DevicesDocumentReceived(agentClient, doc);
agentClient.OnCurrentReceived += (s, doc) => StreamsDocumentReceived(agentClient, doc);
agentClient.OnSampleReceived += (s, doc) => StreamsDocumentReceived(agentClient, doc);
agentClient.OnAssetsReceived += (s, doc) => AssetsDocumentReceived(agentClient, doc);

if (Agent.GetDevice(agentClient.Device) == null)
{
agentClient.OnProbeReceived += (s, doc) => DevicesDocumentReceived(agentClient, doc);
}

_clients.Add(agentClient);
}
}
Expand Down

0 comments on commit b9a3c8b

Please sign in to comment.