/// <inheritdoc /> public async Task SendApplicationHeartbeat(string groupId, int HeartBeatIntervalInSec) { var command = new ApplicationHeartbeat { MsgType = MsgTypes.ApplicationHeartbeat, GrpID = groupId, HeartBtInt = HeartBeatIntervalInSec, }; await SendCommandAsync(command).ConfigureAwait(false); }
public async Task SendApplicationHeartbeat( string groupId, int HeartBeatIntervalInSec, CancellationToken cancellationToken = default) { var command = new ApplicationHeartbeat { MsgType = MsgTypes.ApplicationHeartbeat, GrpID = groupId, HeartBtInt = HeartBeatIntervalInSec, }; await SendWithoutResponceAsync( HeartbeatPath, HttpMethod.Post, command : command, cancellationToken : cancellationToken) .ConfigureAwait(false); return; }