Пример #1
0
 private int AskServer(MsgD message, int param)
 {
     _client.Write(message.GetWriterForInts(_transaction, new[]
     {
         _queryResultID,
         param
     }));
     return(((MsgD)_client.ExpectedResponse(message)).ReadInt());
 }
Пример #2
0
 public override void Commit()
 {
     PreCommit();
     if (IsSystemTransaction())
     {
         _client.Write(Msg.CommitSystemtrans);
     }
     else
     {
         _client.Write(Msg.Commit.GetWriter(this));
         _client.ExpectedResponse(Msg.Ok);
     }
 }
Пример #3
0
 public override void Commit()
 {
     CommitTransactionListeners();
     ClearAll();
     if (IsSystemTransaction())
     {
         _client.Write(Msg.CommitSystemtrans);
     }
     else
     {
         _client.Write(Msg.Commit);
         _client.ExpectedResponse(Msg.Ok);
     }
 }