Beispiel #1
0
 /// <summary>
 /// 异步 解压缩 Base64 字符串 返回 解压缩后的字符串
 /// </summary>
 /// <param name="decompressString">要解压缩的Base64字符串</param>
 /// <param name="encoding">编码 Null 使用默认编码</param>
 /// <param name="compresserStringAndBase64String">压缩器 字符串 和 Base64字符串 压缩 功能 接口</param>
 /// <returns></returns>
 public static async Task <string> DecompressStringFromBase64StringAsync(string decompressString, Encoding encoding = null, ICompresserStringAndBase64String compresserStringAndBase64String = null)
 {
     return(await GenericityHelper.GetInterface(compresserStringAndBase64String, DefaultCompresser).DecompressStringFromBase64StringAsync(decompressString, encoding));
 }
Beispiel #2
0
 /// <summary>
 /// 解压缩 Base64 字符串 返回 解压缩后的字符串
 /// </summary>
 /// <param name="decompressString">要解压缩的Base64字符串</param>
 /// <param name="encoding">编码 Null 使用默认编码</param>
 /// <param name="compresserStringAndBase64String">压缩器 字符串 和 Base64字符串 压缩 功能 接口</param>
 /// <returns></returns>
 public static string DecompressStringFromBase64String(string decompressString, Encoding encoding = null, ICompresserStringAndBase64String compresserStringAndBase64String = null)
 {
     return(GenericityHelper.GetInterface(compresserStringAndBase64String, DefaultCompresser).DecompressStringFromBase64String(decompressString, encoding));
 }