mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
22 lines
630 B
C#
22 lines
630 B
C#
|
|
namespace Wox.Core.Plugin.QueryDispatcher
|
|
{
|
|
internal static class QueryDispatcher
|
|
{
|
|
private static IQueryDispatcher regularDispatcher = new RegularPluginQueryDispatcher();
|
|
private static IQueryDispatcher wildcardDispatcher = new WildcardPluginQueryDispatcher();
|
|
|
|
public static void Dispatch(Wox.Plugin.Query query)
|
|
{
|
|
if (PluginManager.IsRegularPluginQuery(query))
|
|
{
|
|
regularDispatcher.Dispatch(query);
|
|
}
|
|
else
|
|
{
|
|
wildcardDispatcher.Dispatch(query);
|
|
}
|
|
}
|
|
}
|
|
}
|