rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
928 stars 402 forks source link

For .NET Core, TcpClient doesn't support the .Connect() API #14

Open 3bh opened 6 years ago

3bh commented 6 years ago

TcpClient only supports ConnectAsync() in .NET Core. This requires that our .Connect() wrapper wait for the .ConnectAsync() call to complete before calling .GetStream(), so we will make the .Connect() method awaitable.