예제 #1
0
        internal bool OnNotice(RedisClient cli, NoticeEventArgs e)
        {
            var topOwner = Adapter?.TopOwner ?? cli;

            if (topOwner?.Notice == null)
            {
                return(false);
            }
            topOwner.Notice(topOwner, e);
            return(true);
        }
예제 #2
0
 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}");
     }
 }
예제 #3
0
 internal bool OnNotice(NoticeEventArgs e)
 {
     this.Notice?.Invoke(this, e);
     return(this.Notice != null);
 }
예제 #4
0
 void OnNotice(NoticeEventArgs e)
 {
     this.Notice?.Invoke(this, e);
 }