public Cog GetCog(string package, Version version) { var cog = new Cog { Package = package, Version = version }; cog.ContentStream = new FileStream(GetCogFileName(cog), FileMode.Open, FileAccess.Read); return cog; }
private string GetCogFileName(Cog cog) { return Path.Combine(GetPackageBasePath(cog.Package), cog.Version + ".cog"); }