public bool Get(string key) { if (HandleTasks.ContainsKey(key)) { return(HandleTasks[key]); } return(false); }
public void Remove(string key) { if (HandleTasks.ContainsKey(key)) { HandleTasks.Remove(key); } if (ResponseTasks.ContainsKey(key)) { ResponseTasks.Remove(key); } }
public void Action(string key, T value) { if (HandleTasks.ContainsKey(key)) { HandleTasks[key] = true; if (!ResponseTasks.ContainsKey(key)) { ResponseTasks.Add(key, value); } } }