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