示例#1
0
        public async Task <bool> RecordHearbeatAsync(string token, string details, CancellationToken cancellationToken)
        {
            var request  = HeartbeatRequest(details, token);
            var response = await _client.RecordActivityTaskHeartbeatAsync(request, cancellationToken);

            return(IsCancellationRequested(response));
        }