HasPendingOperations Operation

The HasPendingOperation operation returns false if there are some requests that have not yet been processed by server. The following code shows how to wait until the replay operation is processed by the server.

Customer c = new Customer();
c.Id = 900;
c.Address = "Beijing";
c.Create();
c.SubmitPending();

//use this code to wait for the replay operation result:

while (MyPackageDB.HasPendingOperations())
 {
      Thread.Sleep(1000);
  }