public IPlugin LoadPlugin(string type) { return(Plugins.AsParallel().SingleOrDefault <IPlugin>(p => p.GetTypeName() == type)); }
public IPlugin GetPluginFromSubscription(Subscription s) { return(Plugins.AsParallel().SingleOrDefault <IPlugin>(p => p.GetTypeName() == s.Type)); }