PowerToys/Wox.Core/Plugin/QueryDispatcher/QueryDispatcher.cs
2015-01-23 20:49:00 +08:00

22 lines
596 B
C#

namespace Wox.Core.Plugin.QueryDispatcher
{
internal static class QueryDispatcher
{
private static IQueryDispatcher pluginCmd = new RegularPluginQueryDispatcher();
private static IQueryDispatcher systemCmd = new WildcardPluginQueryDispatcher();
public static void Dispatch(Wox.Plugin.Query query)
{
if (PluginManager.IsRegularPluginQuery(query))
{
pluginCmd.Dispatch(query);
}
else
{
systemCmd.Dispatch(query);
}
}
}
}