.NET Core 2 event driven client for ETCars.
It connects to ETCars socket and provide fully tipized data via event handlers.
Uses ManagedSockets to receive data from ETCars socket.
using ETCarsDotNetSdk;
using ETCarsDotNetSdk.Events;
ETCarsClient client = new ETCarsClient();
client.DataReceived += client_DataReceived;
client.Connect();
private void client_DataReceived(ETCarsDataReceivedArgs args)
{
Console.WriteLine(args.RawData);
}
ETCarsDataReceivedArgs contains RawData (raw json data in string) and Data, fully typized value object with the class ETCarsData .
- DataRecived
- Connected
- Disconnected