Lines Matching refs:kvp
980 public void AddNotification(KeyValuePair<string, ManualResetEvent> kvp) in AddNotification() argument
982 matchNotify.Add(kvp); in AddNotification()
989 public void AddNotification(KeyValuePair<string, Func<string, bool>> kvp) in AddNotification() argument
991 int already = matchCallback.IndexOf(kvp); in AddNotification()
995 CafeX.Log.WriteLine("Overriding existing handler for '{0}'!", kvp.Key); in AddNotification()
999 matchCallback.Add(kvp); in AddNotification()
1516 foreach (KeyValuePair<string, ManualResetEvent> kvp in matchNotify) in consume_raw_bytes()
1519 … if (thing.IndexOf(kvp.Key, 0, thing.Length, StringComparison.CurrentCultureIgnoreCase) >= 0) in consume_raw_bytes()
1523 … Console.WriteLine(" Found key '{0}'...setting handle {1}", kvp.Key, kvp.Value.Handle); in consume_raw_bytes()
1525 kvp.Value.Set(); in consume_raw_bytes()
1530 foreach (KeyValuePair<string, Func<string, bool>> kvp in matchCallback) in consume_raw_bytes()
1533 … if (thing.IndexOf(kvp.Key, 0, thing.Length, StringComparison.CurrentCultureIgnoreCase) >= 0) in consume_raw_bytes()
1537 …Console.WriteLine(" Found key '{0}'...calling {1}({2})", kvp.Key, kvp.Value.Method.Name, thing); in consume_raw_bytes()
1539 if (!kvp.Value.Invoke(thing)) in consume_raw_bytes()
1541 … output_stream.WriteLine("Callback {0}({1}) requested termination.", kvp.Value.Method.Name, thing); in consume_raw_bytes()