Versionr.Network.Client.SyncRecords C# (CSharp) Method

SyncRecords() public method

public SyncRecords ( ) : bool
return bool
        public bool SyncRecords()
        {
            List<Record> missingRecords = Workspace.GetAllMissingRecords();
            Printer.PrintMessage("Vault is missing data for {0} records.", missingRecords.Count);
            List<string> returnedData = GetRecordData(missingRecords);
            Printer.PrintMessage(" - Got {0} records from remote.", returnedData.Count);
            if (returnedData.Count != missingRecords.Count)
                return false;
            return true;
        }

Usage Example

Exemplo n.º 1
0
 protected override bool RunInternal(Client client, RemoteCommandVerbOptions options)
 {
     SyncRecordsOptions localOptions = options as SyncRecordsOptions;
     if (localOptions.Current)
         return client.SyncCurrentRecords();
     else
         return client.SyncRecords();
 }
All Usage Examples Of Versionr.Network.Client::SyncRecords