コード例 #1
0
 public static string UpdateIntegrity(BuildSignature signature)
 {
     return(ComputeBuildIntegrity(
                signature.InstanceName,
                GetFileIntegrity(signature.Path),
                GetHashtableIntegrity(signature.Node)
                ));
 }
コード例 #2
0
        public static void SaveTo(string path, BuildSignature signature)
        {
            using (var stream = new FileStream(path, FileMode.Create))
            {
                using (var writer = new System.IO.StreamWriter(stream))
                {
                    var jsonSetting = new JsonSerializerSettings();
                    jsonSetting.Formatting = Formatting.Indented;

                    writer.Write(JsonConvert.SerializeObject(signature, jsonSetting));
                }
            }
        }