Beispiel #1
0
 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));
 }
Beispiel #2
0
 public static Task Subscribe(string key, ParamIntDelegate callback) =>
 SubscribeInternal(key, (name, value) => callback(name, value.GetInt()));