Beispiel #1
0
            public async Task <(string hash, string installDir)> GetInstalledSdkDir(SdkInfo sdk)
            {
                var sdkHash = SdkLoader.SdkSha256(sdk);
                var sdkDir  = Path.Combine(replayRecorder.extractedDir, ArchiveRecorder.SdkPath(sdkHash));

                if (!Directory.Exists(sdkDir))
                {
                    throw new Exception("Unknown SDK.");
                }

                return(sdkHash, Path.Combine(sdkDir, "install"));
            }
Beispiel #2
0
 public ArchiveSdkInstallManager(ArchiveRecorder archiveRecorder) : base(archiveRecorder.cacheDir)
 {
     this.archiveRecorder = archiveRecorder;
 }
Beispiel #3
0
 public async Task <string> RecordArtifact(string path, Func <string, Task <string> > fetch) =>
 Path.Combine(extractedDir, ArchiveRecorder.ArtifactPath(path));