调用时设置一下 deadline 参数即可,示例如下:
RegAccessInfo result = client.RegisterRead(regAccessInfo, deadline: DateTime.UtcNow.AddSeconds(2));
if (result.ResultCode == ResultCode.Succeed)
{
Console.WriteLine("Register read succeed. regdata = {0}", result.RegData.ToString("X"));
}
else
{
Console.WriteLine("Register read failed. ResultCode = {0}", result.ResultCode);
}