Beispiel #1
0
 public bool Get(string key)
 {
     if (HandleTasks.ContainsKey(key))
     {
         return(HandleTasks[key]);
     }
     return(false);
 }
Beispiel #2
0
        public void Remove(string key)
        {
            if (HandleTasks.ContainsKey(key))
            {
                HandleTasks.Remove(key);
            }

            if (ResponseTasks.ContainsKey(key))
            {
                ResponseTasks.Remove(key);
            }
        }
Beispiel #3
0
        public void Action(string key, T value)
        {
            if (HandleTasks.ContainsKey(key))
            {
                HandleTasks[key] = true;

                if (!ResponseTasks.ContainsKey(key))
                {
                    ResponseTasks.Add(key, value);
                }
            }
        }