public static async Task <StudioDeployLogs> Get(string branch) { StudioDeployLogs logs = null; if (LogCache.ContainsKey(branch)) { logs = LogCache[branch]; } else { logs = new StudioDeployLogs(branch); } var getDeployHistory = HistoryCache.GetDeployHistory(branch); string deployHistory = await getDeployHistory.ConfigureAwait(false); if (logs.LastDeployHistory != deployHistory) { int maxVersion = int.MaxValue; if (branch == "roblox") { string binaryType = StudioBootstrapper.GetStudioBinaryType(); var getInfo = ClientVersionInfo.Get(binaryType); var info = await getInfo.ConfigureAwait(false); int version = info.Version .Split('.') .Select(int.Parse) .Skip(1) .First(); maxVersion = version; } logs.LastDeployHistory = deployHistory; logs.UpdateLogs(deployHistory, maxVersion); } return(logs); }
public static async Task <StudioDeployLogs> Get(string branch) { StudioDeployLogs logs = null; if (LogCache.ContainsKey(branch)) { logs = LogCache[branch]; } else { logs = new StudioDeployLogs(branch); } string deployHistory = await HistoryCache.GetDeployHistory(branch); if (logs.LastDeployHistory != deployHistory) { logs.LastDeployHistory = deployHistory; logs.UpdateLogs(deployHistory); } return(logs); }