Trigger() private méthode

private Trigger ( string triggerEvent, Newtonsoft.Json.Linq.JObject payload = null, string ref_ = null ) : void
triggerEvent string
payload Newtonsoft.Json.Linq.JObject
ref_ string
Résultat void
Exemple #1
0
        //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);
        }
Exemple #2
0
 internal void Trigger(ReplyStatus status)
 {
     _channel.Trigger(new Message(
                          @event: _refEvent,
                          payload: new Dictionary <string, object>
     {
         { "status", status.Serialized() }
     }
                          ));
 }