2014-12-26 22:51:04 +08:00
|
|
|
|
|
|
|
|
|
namespace Wox.Core.Plugin.QueryDispatcher
|
|
|
|
|
{
|
|
|
|
|
internal static class QueryDispatcher
|
|
|
|
|
{
|
2015-01-23 20:49:00 +08:00
|
|
|
|
private static IQueryDispatcher pluginCmd = new RegularPluginQueryDispatcher();
|
|
|
|
|
private static IQueryDispatcher systemCmd = new WildcardPluginQueryDispatcher();
|
2014-12-26 22:51:04 +08:00
|
|
|
|
|
|
|
|
|
public static void Dispatch(Wox.Plugin.Query query)
|
|
|
|
|
{
|
2015-01-23 20:49:00 +08:00
|
|
|
|
if (PluginManager.IsRegularPluginQuery(query))
|
2014-12-26 22:51:04 +08:00
|
|
|
|
{
|
|
|
|
|
pluginCmd.Dispatch(query);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
systemCmd.Dispatch(query);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|