Пример #1
0
 public IPlugin LoadPlugin(string type)
 {
     return(Plugins.AsParallel().SingleOrDefault <IPlugin>(p => p.GetTypeName() == type));
 }
Пример #2
0
 public IPlugin GetPluginFromSubscription(Subscription s)
 {
     return(Plugins.AsParallel().SingleOrDefault <IPlugin>(p => p.GetTypeName() == s.Type));
 }