static void Main(string[] args) { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Green; CmdController.Execute(); }
public void TestCmdController() { CmdController aController = new CmdController(); CmdRecord aRecord = new CmdRecord() { CmdId = "TestCmd", Time = DateTime.Now, Value = "" }; Func <string, ErrInfo> aCmd = TestSetOk; aController.Add(aRecord, aCmd); TestSetOk(""); }
static void RunTest() { Nistec.Channels.NetProtocol netprotocol = Nistec.Channels.NetProtocol.Tcp; do { Console.WriteLine("start...protocol: " + netprotocol.ToString()); string protocol = Console.ReadLine(); if (protocol != null && protocol.Length > 0) { netprotocol = protocol == "pipe" ? Nistec.Channels.NetProtocol.Pipe : Nistec.Channels.NetProtocol.Tcp; } if (Controller.EnableJsonController) { CmdController.DoCommandSyncJson(netprotocol, "printentityvalues", "contactEntity", "", ""); } else { CmdController.DoCommandSync(netprotocol, "printentityvalues", "contactEntity", "", "", ""); } Console.WriteLine("end..."); } while (Console.ReadLine() != "q"); }
public string FulfillRequestTo(string request, Player ofP) { CmdController manager = new CmdController(request); return(manager.ExeCmd(ofP)); }