Skip to content

dxFeed .Net API 7.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Feb 11:41
· 82 commits to master since this release

Version 7.1.0

  • [DXFC-209] Implemented the heartbeat semantics with payload
    • Added the new method NativeConnection.SetOnServerHeartbeatHandler(OnServerHeartbeatHandler handler)
      that sets a handler that will be called when a server heartbeat arrives and contains non empty payload

    • Added the new delegate type delegate void OnServerHeartbeatHandler(IDxConnection connection, DateTime serverDateTime, int serverLagMark, int connectionRtt)
      which is describes the handler type of a connection's incoming heartbeat notification
      Passed parameters:

      • connection - The current connection object
      • serverDateTime - The server UTC time (from the incoming heartbeat payload)
      • serverLagMark - The server's messages composing lag time in microseconds (from the incoming heartbeat payload)
      • connectionRtt - The calculated connection RTT in microseconds

      An example of usage:

      connection.SetOnServerHeartbeatHandler((connection, time, lagMark, rtt) => {
          Console.Error.WriteLine($"##### Server time (UTC) = {time}, Server lag = {lagMark} us, RTT = {rtt} us #####");
      });