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