public static BuildLogged ReadDataFrom(BinaryReader reader) { return(new BuildLogged { BuildId = GuidSerializer.ReadGuid(reader), Text = reader.ReadString() }); }
public static BuildIssueDetected ReadDataFrom(BinaryReader reader) { return(new BuildIssueDetected { BuildId = GuidSerializer.ReadGuid(reader), Severity = (BuildIssueType)Enum.Parse(typeof(BuildIssueType), reader.ReadString()), Code = reader.ReadString(), Message = reader.ReadString(), Source = Optional.Read(reader, (Func <BinaryReader, SourceReference>)SourceReference.Read), }); }