当达到最大重连次数限制,决定放弃继续重连时触发此回调
触发时机:当MaxRetryCount大于0且重连尝试次数达到该限制时
注意:如果MaxRetryCount设置为-1(无限重连),此回调永远不会被触发
第1参数:放弃重连的客户端实例
第2参数:总共尝试的重连次数
public Action<TClient, int> OnGiveUp { get; set; }Public Property OnGiveUp As Action(Of TClient, Integer)
Get
Setmember OnGiveUp : Action<'TClient, int> with get, set