Esempio n. 1
0
 public static Result <ResourceEdmx> GZipToBase64(GZipBinary source) =>
 FlowHelpers.With(source)
 .OnSuccess(edmx => Base64Module.BytesToBase64(edmx.ByteArray)
            .OnSuccess(base64 => new ResourceEdmx(base64)));
Esempio n. 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());