public static void Subscribe(string key, ParamIntDelegate del) { if (!IntCallbacks.ContainsKey(key)) { IntCallbacks.Add(key, new List <ParamIntDelegate>()); } IntCallbacks[key].Add(del); update(key, getParam(key, true)); }
public static Task Subscribe(string key, ParamIntDelegate callback) => SubscribeInternal(key, (name, value) => callback(name, value.GetInt()));