public static string UpdateIntegrity(BuildSignature signature) { return(ComputeBuildIntegrity( signature.InstanceName, GetFileIntegrity(signature.Path), GetHashtableIntegrity(signature.Node) )); }
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)); } } }