public Task <DTopic> CreateAsync(string name, JSC.JSValue st, JSC.JSValue manifest) { var req = new TopicReq(this, this == Connection.root ? ("/" + name) : (this.path + "/" + name), st, manifest); App.PostMsg(req); return(req.Task); }
internal void Clear() { if (_children != null) { foreach (var ch in _children) { ch.Clear(); } _children = null; } _state = null; _manifest = null; if (_req != null) { _req.Response(false, new JSL.Array { this.ToString(), "Offline" }); App.PostMsg(_req); _req = null; } ChangedReise(Art.Refresh, this); }
public Task <DTopic> GetAsync(string p) { DTopic ts; if (string.IsNullOrEmpty(p)) { ts = this; } else if (p[0] == '/') { ts = Connection.root; } else { ts = this; p = this == Connection.root ? ("/" + p) : (this.path + "/" + p); } //Log.Debug(this.path+".GetAsync("+( p??"null" )+")"); var req = new TopicReq(ts, p); App.PostMsg(req); return(req.Task); }