public static void Synchronize() { // Send pending transactions to the server SynchronizationServerProxy.SendTransactions( ClientTransactionService.GetPendingTransactions()); // Get reference data from the server ReferenceDataContract referenceData = SynchronizationServerProxy.GetReferenceData(lastSynchronized); // Process the reference data Synchronizer.ProcessReferenceData(referenceData); // Get transactions from the server IList <ServerTransaction> serverTransactions = SynchronizationServerProxy.GetTransactions(lastSynchronized); // Process the server transactions Synchronizer.ProcessServerTransactions(serverTransactions); // If the synchronization was successful, // then record the timestamp Synchronizer.SetLastSynchronized(); }
static Synchronizer() { Synchronizer.GetLastSynchronized(); }