示例#1
0
        public static void AddDecryptCount(string type, Counter counter)
        {
            if (counter == null)
            {
                return;
            }

            if (PHONE.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptPhoneNum);
            }
            else if (NICK.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptNickNum);
            }
            else if (RECEIVER_NAME.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptReceiverNameNum);
            }
            else if (SIMPLE.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptSimpleNum);
            }
            else if (SEARCH.Equals(type))
            {
                Interlocked.Increment(ref counter.DecryptSearchNum);
            }
        }
示例#2
0
 public static void AddDecryptCount(string type)
 {
     if (PHONE.Equals(type))
     {
         Interlocked.Increment(ref DecryptPhoneNum);
     }
     else if (NICK.Equals(type))
     {
         Interlocked.Increment(ref DecryptNickNum);
     }
     else if (RECEIVER_NAME.Equals(type))
     {
         Interlocked.Increment(ref DecryptReceiverNameNum);
     }
 }
示例#3
0
 public static void AddSearchCount(string type)
 {
     if (PHONE.Equals(type))
     {
         Interlocked.Increment(ref SearchPhoneNum);
     }
     else if (NICK.Equals(type))
     {
         Interlocked.Increment(ref SearchNickNum);
     }
     else if (RECEIVER_NAME.Equals(type))
     {
         Interlocked.Increment(ref SearchReceiverNameNum);
     }
 }