Flow.Launcher/Wox.Core/Plugin/QueryDispatcher/GenericQueryDispatcher.cs

18 lines
502 B
C#
Raw Normal View History

2014-12-26 14:51:04 +00:00
using System.Collections.Generic;
2014-01-03 10:16:05 +00:00
using System.Linq;
2014-01-03 15:52:36 +00:00
using System.Threading;
2015-01-16 15:42:12 +00:00
using Wox.Core.Exception;
using Wox.Core.UserSettings;
2015-01-16 15:42:12 +00:00
using Wox.Infrastructure.Logger;
2014-01-29 10:33:24 +00:00
using Wox.Plugin;
2014-01-03 10:16:05 +00:00
2014-12-26 14:51:04 +00:00
namespace Wox.Core.Plugin.QueryDispatcher
2014-01-03 10:16:05 +00:00
{
2015-02-05 14:20:42 +00:00
public class GenericQueryDispatcher : BaseQueryDispatcher
2014-01-03 10:16:05 +00:00
{
2015-02-04 15:16:41 +00:00
protected override List<PluginPair> GetPlugins(Query query)
2014-01-03 10:16:05 +00:00
{
2015-02-05 14:20:42 +00:00
return PluginManager.AllPlugins.Where(o => PluginManager.IsGenericPlugin(o.Metadata)).ToList();
2014-01-03 10:16:05 +00:00
}
}
2015-01-04 15:08:26 +00:00
}