public CommandModule() { Client = new Pusher.Client(); dynamic cmd = new { Name = "Carsten Jonstrup", Demo = "Niels" }; Post["/alarm/ack"] = x => { Client.Push("commands", "action", cmd); return "Ok"; }; }
public CommandModule() { Client = new Pusher.Client(); dynamic cmd = new { Name = "Carsten Jonstrup", Demo = "Niels" }; Post["/alarm/ack"] = x => { Client.Push("commands", "action", cmd); return("Ok"); }; }