internal bool OnNotice(RedisClient cli, NoticeEventArgs e) { var topOwner = Adapter?.TopOwner ?? cli; if (topOwner?.Notice == null) { return(false); } topOwner.Notice(topOwner, e); return(true); }
void OnNotice(NoticeEventArgs e) { if (this.Notice != null) { this.Notice(this, e); } else { Trace.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss")}] 线程{Thread.CurrentThread.ManagedThreadId}:{e.Log}"); } }
internal bool OnNotice(NoticeEventArgs e) { this.Notice?.Invoke(this, e); return(this.Notice != null); }
void OnNotice(NoticeEventArgs e) { this.Notice?.Invoke(this, e); }