Example #1
0
        public Indexer SaveDep(Assembly asm, byte[] assemblyBytes, RuneSpec spec)
        {
            var depDir = _path
                         .CreateSubdirectory(spec.ID)
                         .CreateSubdirectory($"{spec.Version}")
                         .CreateSubdirectory("any");

            File.WriteAllBytes(Path.Combine(depDir.FullName, $"{asm.GetName().Name}.image"), assemblyBytes);

            if (useLockFile)
            {
                lockFile.Add(new AncientLockFile(spec));
                FlushLock();
            }
            return(this);
        }
Example #2
0
 public AncientLockFile(RuneSpec spec)
 {
     id      = spec.ID;
     version = spec.Version;
 }