Skip to content

Add ConnectAsync and InitializeAsync methods to TCP clients#148

Open
rowan-walsh wants to merge 2 commits intoApollo3zehn:devfrom
rowan-walsh:async-tcp-connect
Open

Add ConnectAsync and InitializeAsync methods to TCP clients#148
rowan-walsh wants to merge 2 commits intoApollo3zehn:devfrom
rowan-walsh:async-tcp-connect

Conversation

@rowan-walsh
Copy link

Updates the *.tt templates to add translated ConnectAsync and InitializeAsync methods for ModbusTcpClient and ModbusRtuOverTcpClient. Seemed like an easy win because the non-async Initialize methods were already using tcpClient.ConnectAsync(...) internally.

The T4 *.tt templates were slightly out-of-date after the namespace
indentation changes.
Added for ModbusRtuOverTcpClient and ModbusTcpClient, using the .tt
templates. Includes tests of Connect/Init cancellation tokens or
timeouts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant