Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public NpmResourceProvider(ResourcePlugin plugin) : base(plugin, "npm")
 {
     RegistryUrl = "https://registry.npmjs.org/";
 }