internal void OnTransReplyCall(TransactionReply reply) { OnTransReply?.Invoke(reply); // this should happen only once per transaction id Trace.Assert(TransactionReply == null); TransactionReply = reply; }
internal void OnTransReplyCall(TransactionReply reply) { OnTransReply?.Invoke(reply); // invoke event specific for the transaction //if (string.IsNullOrEmpty(reply.Comment))//"Initialization user successful" transaction doesn't contain comment // return; //if (QuikService.Storage.Contains(reply.Comment)) { // var tr = QuikService.Storage.Get<Transaction>(reply.Comment); // lock (tr) { // tr.OnTransReplyCall(reply); // } //} else { // // NB ignore unmatched transactions // //Trace.Fail("Transaction must exist in persistent storage until it is completed and its reply is recieved"); //} }