Exemple #1
0
 public static void DispatchCommand(Query query)
 {
     if (Plugins.HitThirdpartyKeyword(query))
     {
         pluginCmd.Dispatch(query);
     }
     else
     {
         systemCmd.Dispatch(query);
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
            }
        }