/// <summary> /// 调用处理 /// </summary> public override void Call() { try { Task(); } catch (Exception error) { Sender.VirtualAddLog(error); } }
/// <summary> /// 调用处理 /// </summary> public override void Call() { try { task(); } catch (Exception error) { sender.VirtualAddLog(error); } finally { if (System.Threading.Interlocked.CompareExchange(ref continuation, Pub.EmptyAction, null) != null) { continuation(); } } }