Added possibility to capture all data received events by registering with the interface

This commit is contained in:
DarthAffe committed 2017-07-29 14:32:10 +02:00
1 parent 27fd4aba40
commit 78740de0e3
1 file changed
+3
+3
View File
@@ -153,6 +153,9 @@ namespace OBD.NET.Common.Devices
if (DataReceivedEventHandlers.TryGetValue(dataType, out IDataEventManager dataEventManager))
dataEventManager.RaiseEvent(this, obdData, timestamp);
if (DataReceivedEventHandlers.TryGetValue(typeof(IOBDData), out IDataEventManager genericDataEventManager))
genericDataEventManager.RaiseEvent(this, obdData, timestamp);
return obdData;
}
}