private void StreamWorker_ReturnCheckFP() { try { ReturnFPMessage mes = ProtoBuf.Serializer.DeserializeWithLengthPrefix <ReturnFPMessage>(this.streamRead, ProtoBuf.PrefixStyle.Base128); if (app.GetTrungTamHTSS().MaTTHTSS == mes.MaTT) { //app.ReceiveMessageFP(mes.FingerPrints); } } catch (Exception ex) { throw ex; } }
private void StreamWorker_RequestFP() { try { form.AppendTextBox("Request Finger Print Message"); RequestFPMessage rq = ProtoBuf.Serializer.DeserializeWithLengthPrefix <Message.RequestFPMessage>(this.streamRead, ProtoBuf.PrefixStyle.Base128); List <string> fps = dbModel.FPDecodeBlobs(); lock (this.socket) { ReturnFPMessage mes = new ReturnFPMessage(); mes.MaTT = rq.MaTT; mes.FingerPrints = fps; messages.Add(mes); this.autoResetEvent.Set(); } } catch (Exception ex) { throw ex; } }