public void PassNewTrigger(object obj, EventTypes.EventType type) { foreach (var action in _handlers[type]) { Task.Run(() => action(obj)); } }
public void RegisterEventListener(Action <object> action, EventTypes.EventType type) { _handlers[type].Add(action); }