public void Record(QuotV5.Binary.MessagePackEx msgPack) { MessagePack mp = new MessagePack() { ReciveTime = msgPack.ReceiveTime, Data = QuotV5.DataHelper.UnionByteArrays(msgPack.MessagePack.HeaderData, msgPack.MessagePack.BodyData, msgPack.MessagePack.TrailerData) }; try { this.dataCollection.Insert(mp); } catch (Exception ex) { this.logHelper.LogErrMsg(ex, "保存MessagePack到Mongo异常"); } }