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(); }
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(); }
public PluginLocatorBase(PluginLoadProtocol theProtocol) { _protocol = theProtocol; }
public PluginRemoteLocator(PluginLoadProtocol theProtocol) : base(theProtocol) { }
public PluginLocalLocator(PluginLoadProtocol theProtocol) : base(theProtocol) { }