protected ResourceProvider(ResourcePlugin plugin, string name) { if (plugin == null) { throw new ArgumentNullException(nameof(plugin)); } if (name == null) { throw new ArgumentNullException(nameof(name)); } Plugin = plugin; Name = name; Resources = new List <ResourceObject>(); // Set the list of resources loaded plugin.SetValue(name, ResourcesForScripting, true); }
public NpmResourceProvider(ResourcePlugin plugin) : base(plugin, "npm") { RegistryUrl = "https://registry.npmjs.org/"; }