private Trigger ( string triggerEvent, Newtonsoft.Json.Linq.JObject payload = null, string ref_ = null ) : void | ||
triggerEvent | string | |
payload | Newtonsoft.Json.Linq.JObject | |
ref_ | string | |
return | void |
//trigger(status, response){ // this.channel.trigger(this.refEvent, {status, response}) //} internal void Trigger(string status, JObject response) { var data = new JObject(); data["status"] = status; data["response"] = response; _channel.Trigger(_refEvent, data); }
internal void Trigger(ReplyStatus status) { _channel.Trigger(new Message( @event: _refEvent, payload: new Dictionary <string, object> { { "status", status.Serialized() } } )); }