Exemple #1
0
 public static Result <GZipBinary> XmlToGZip(XmlEdmx xmlEdmx) =>
 GzipModule.Compress(xmlEdmx.Value)
 .Map(bytes => new GZipBinary(bytes));
Exemple #2
0
 public static Result <XmlEdmx> GZipToXml(GZipBinary gzip) =>
 FlowHelpers.With(gzip)
 .Map(edmx => edmx.ByteArray.Bytes)
 .OnSuccess(edmx => GzipModule.Decompress(edmx))
 .Map(edmx => edmx.ToXml());