/// <summary> /// 完成压缩回调 /// </summary> private void CompressedCallback(IAsyncResult state) { var args = state.AsyncState as CompressArgs; if (args == null) { return; } try { Compressed.EndInvoke(state); var endCompress = EndCompress; if (endCompress != null) { //触发压缩完成事件 endCompress(this, args); } } catch (Exception ex) { // Console.WriteLine(ex.Message); } }