示例#1
0
        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;
        }
示例#2
0
 private string GetCogFileName(Cog cog)
 {
     return Path.Combine(GetPackageBasePath(cog.Package), cog.Version + ".cog");
 }