当单次重连尝试失败时触发此回调,每次重连失败都会调用
触发时机:在ConnectAsync抛出异常时立即触发
第1参数:重连失败的客户端实例
第2参数:当前重连尝试次数(从1开始计数)
第3参数:导致重连失败的异常信息
public Action<TClient, int, Exception> OnFailed { get; set; }Public Property OnFailed As Action(Of TClient, Integer, Exception)
Get
Setmember OnFailed : Action<'TClient, int, Exception> with get, set