private void ProcessCCtor(SortedList <string, JSValue> l, Topic t, Perform.Art a) { foreach (var kv in l) { RPC.CCtor(kv.Key, t, a); } }
private void MqsDevCctor(Topic t, Perform.Art a) { var dev = _devs.FirstOrDefault(z => z.name == t.name); if (dev == null) { dev = new MsDevice(this, t); _devs.Add(dev); } }
internal static void CCtor(string name, Topic t, Perform.Art a) { Action <Topic, Perform.Art> cb; if (_cctors.TryGetValue(name, out cb)) { try { cb.Invoke(t, a); } catch (Exception ex) { Log.Warning("RPC.CCtor({0}, {1}, {2}) - {3}", name, t.path, a, ex); } } }
private void BindCh(Topic t, Perform.Art a) { ILoItem it; LoVariable v = null; if ((!_items.TryGetValue(t, out it) || (v = it as LoVariable) == null) && a == Perform.Art.create) { v = new LoVariable(this, t); _items[t] = v; } if (v != null) { v.ManifestChanged(); } }
private void BlockCh(Topic t, Perform.Art a) { ILoItem it; LoBlock v = null; if (!_items.TryGetValue(t, out it) || (v = it as LoBlock) == null) { if (a == Perform.Art.create) { v = new LoBlock(this, t); _items[t] = v; } } else { v.ManifestChanged(); } }