public void Call(AOSCommand command) { if (dict.Contains(command.Method) == false) { return; } //Or debug // use the delay as well as you wish dict[command.Method](); }
private void ProcessCommand(AOSCommand command) { AOSController controller = null; if (this.dict.TryGetValue(command.ObjName, out controller) == true) { controller.Call(command); return; } }