Ejemplo n.º 1
0
        public static void RegisterResourcePackage(string name, string version, IResourcePackage package)
        {
            var key = PackageKey(name, version);

            if (!_resourcePackages.TryAdd(key, package))
            {
                throw new InvalidOperationException($"Cannot re-register package {key}.");
            }
        }
Ejemplo n.º 2
0
 internal ResourceFile(IResourcePackage package, string name)
 {
     _package = package;
     _name    = name;
 }
 public static void RegisterResourcePackage(string name, string version, IResourcePackage package)
 {
     ResourcePackages.RegisterResourcePackage(name, version, package);
 }