public static IPluginLocator GetLocator(PluginLoadProtocol theProtocol)
 {
     if (theProtocol != PluginLoadProtocol.Unknown)
     {
         if (theProtocol == PluginLoadProtocol.Local)
             return new PluginLocalLocator(theProtocol);
         else if (theProtocol == PluginLoadProtocol.Remote)
             return new PluginRemoteLocator(theProtocol);
     }
     throw new NotSupportedException();
 }
Example #2
0
 public static IPluginLocator GetLocator(PluginLoadProtocol theProtocol)
 {
     if (theProtocol != PluginLoadProtocol.Unknown)
     {
         if (theProtocol == PluginLoadProtocol.Local)
         {
             return(new PluginLocalLocator(theProtocol));
         }
         else if (theProtocol == PluginLoadProtocol.Remote)
         {
             return(new PluginRemoteLocator(theProtocol));
         }
     }
     throw new NotSupportedException();
 }
Example #3
0
 public PluginLocatorBase(PluginLoadProtocol theProtocol)
 {
     _protocol = theProtocol;
 }
Example #4
0
 public PluginLocatorBase(PluginLoadProtocol theProtocol)
 {
     _protocol = theProtocol;
 }
Example #5
0
 public PluginRemoteLocator(PluginLoadProtocol theProtocol)
     : base(theProtocol)
 {
 }
Example #6
0
 public PluginLocalLocator(PluginLoadProtocol theProtocol)
     : base(theProtocol)
 {
 }