Пример #1
0
 protected void CallOnFileOperation(FileOperationRequestBase operation)
 {
     if (OnFileOperation != null)
     {
         OnFileOperation(this, operation);
     }
 }
Пример #2
0
 protected virtual void SendOperationRequest(FileOperationRequestBase operation)
 {
     if (handleFileOperationsAutomatically)
     {
         operation.PerformOperation();
         return;
     }
     CallOnFileOperation(operation);
 }
        protected async override void SendOperationRequest(FileOperationRequestBase operation)
        {
            if (handleFileOperationsAutomatically)
            {
                if (lastDownloadOperation != null)
                    await lastDownloadOperation;
                lastDownloadOperation = operation.PerformOperationAsyncTask(downloadClient);
                return;
            }

            CallOnFileOperation(operation);
        }
        protected async override void SendOperationRequest(FileOperationRequestBase operation)
        {
            if (handleFileOperationsAutomatically)
            {
                if (lastDownloadOperation != null)
                {
                    await lastDownloadOperation;
                }
                lastDownloadOperation = operation.PerformOperationAsyncTask(downloadClient);
                return;
            }

            CallOnFileOperation(operation);
        }
Пример #5
0
 protected virtual void SendOperationRequest(FileOperationRequestBase operation)
 {
     if(handleFileOperationsAutomatically)
     {
         operation.PerformOperation();
         return;
     }
     CallOnFileOperation(operation);
 }
Пример #6
0
 protected void CallOnFileOperation(FileOperationRequestBase operation)
 {
     if (OnFileOperation != null)
         OnFileOperation(this, operation);
 }