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()
1567 foreach (KeyValuePair<string, ManualResetEvent> kvp in matchNotify) in consume_raw_bytes()
1570 … if (thing.IndexOf(kvp.Key, 0, thing.Length, StringComparison.CurrentCultureIgnoreCase) >= 0) in consume_raw_bytes()
1574 … Console.WriteLine(" Found key '{0}'...setting handle {1}", kvp.Key, kvp.Value.Handle); in consume_raw_bytes()
1576 kvp.Value.Set(); in consume_raw_bytes()
1581 foreach (KeyValuePair<string, Func<string, bool>> kvp in matchCallback) in consume_raw_bytes()
1584 … if (thing.IndexOf(kvp.Key, 0, thing.Length, StringComparison.CurrentCultureIgnoreCase) >= 0) in consume_raw_bytes()
1588 …Console.WriteLine(" Found key '{0}'...calling {1}({2})", kvp.Key, kvp.Value.Method.Name, thing); in consume_raw_bytes()
1590 if (!kvp.Value.Invoke(thing)) in consume_raw_bytes()
1592 … output_stream.WriteLine("Callback {0}({1}) requested termination.", kvp.Value.Method.Name, thing); in consume_raw_bytes()