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); } }
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); } }
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); } }