public static void DispatchCommand(Query query) { if (Plugins.HitThirdpartyKeyword(query)) { pluginCmd.Dispatch(query); } else { systemCmd.Dispatch(query); } }
public static void DispatchCommand(Query query, bool updateView = true) { //lazy init command instance. if (pluginCmd == null) { pluginCmd = new PluginCommand(); } if (systemCmd == null) { systemCmd = new SystemCommand(); } systemCmd.Dispatch(query, updateView); pluginCmd.Dispatch(query, updateView); }
public static void DispatchCommand(Query query) { //lazy init command instance. if (pluginCmd == null) { pluginCmd = new PluginCommand(); } if (systemCmd == null) { systemCmd = new SystemCommand(); } if (Plugins.HitThirdpartyKeyword(query)) { pluginCmd.Dispatch(query); } else { systemCmd.Dispatch(query); } }