Example #1
0
        private void OnEngineOperationCompleted(object sender, OperationCompletedArgs e)
        {
            bool flag = (e.Operation.OperationType == SyncOperationType.TransferFrom) && (e.Operation.Item.SyncDirection == SyncDirection.Reverse);

            if (!flag)
            {
                this.attemptedSyncOperations.Add(e.Operation);
            }
            if ((e.SyncResult == null) || (e.SyncResult.ResultCode == 0))
            {
                if (flag)
                {
                    this.successfulAcquiredOperations.Add(e.Operation);
                }
                else
                {
                    this.successfulSyncOperations.Add(e.Operation);
                    this.successfulCumulativeSyncOperations.Add(e.Operation);
                }
            }
        }
Example #2
0
 private void OnEngineOperationCompleted(object sender, OperationCompletedArgs e)
 {
     bool flag = (e.Operation.OperationType == SyncOperationType.TransferFrom) && (e.Operation.Item.SyncDirection == SyncDirection.Reverse);
     if (!flag)
     {
         this.attemptedSyncOperations.Add(e.Operation);
     }
     if ((e.SyncResult == null) || (e.SyncResult.ResultCode == 0))
     {
         if (flag)
         {
             this.successfulAcquiredOperations.Add(e.Operation);
         }
         else
         {
             this.successfulSyncOperations.Add(e.Operation);
             this.successfulCumulativeSyncOperations.Add(e.Operation);
         }
     }
 }