public static string rmqsend(List <string> args) { if (args.Count == 0) { return("rmqsend requires 1 argument"); } producer.Connect(); IncidentData data = new IncidentData(); data.Data["Message"] = args[0]; producer.SendObject(data); return("Message sent"); }