/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (TotalPersistentFilesNotSyncingCount < 0)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalPersistentFilesNotSyncingCount", 0);
     }
     if (UploadStatus != null)
     {
         UploadStatus.Validate();
     }
     if (DownloadStatus != null)
     {
         DownloadStatus.Validate();
     }
     if (UploadActivity != null)
     {
         UploadActivity.Validate();
     }
     if (DownloadActivity != null)
     {
         DownloadActivity.Validate();
     }
     if (BackgroundDataDownloadActivity != null)
     {
         BackgroundDataDownloadActivity.Validate();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportOrchestration"/> class.
 /// </summary>
 /// <param name="uploadActivity">upload zip activity.</param>
 /// <param name="sendFileCardActivity">send file card activity.</param>
 /// <param name="getMetadataActivity">get the metadata activity.</param>
 /// <param name="updateExportDataActivity">update the export data activity.</param>
 /// <param name="handleExportFailureActivity">handle failure activity.</param>
 public ExportOrchestration(
     UploadActivity uploadActivity,
     SendFileCardActivity sendFileCardActivity,
     GetMetadataActivity getMetadataActivity,
     UpdateExportDataActivity updateExportDataActivity,
     HandleExportFailureActivity handleExportFailureActivity)
 {
     this.uploadActivity              = uploadActivity;
     this.sendFileCardActivity        = sendFileCardActivity;
     this.getMetadataActivity         = getMetadataActivity;
     this.updateExportDataActivity    = updateExportDataActivity;
     this.handleExportFailureActivity = handleExportFailureActivity;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportOrchestration"/> class.
 /// </summary>
 /// <param name="uploadActivity">upload zip activity.</param>
 /// <param name="sendFileCardActivity">send file card activity.</param>
 /// <param name="getMetadataActivity">get the metadata activity.</param>
 /// <param name="updateExportDataActivity">update the export data activity.</param>
 /// <param name="handleExportFailureActivity">handle failure activity.</param>
 public ExportOrchestration(
     UploadActivity uploadActivity,
     SendFileCardActivity sendFileCardActivity,
     GetMetadataActivity getMetadataActivity,
     UpdateExportDataActivity updateExportDataActivity,
     HandleExportFailureActivity handleExportFailureActivity)
 {
     this.uploadActivity              = uploadActivity ?? throw new ArgumentNullException(nameof(uploadActivity));
     this.sendFileCardActivity        = sendFileCardActivity ?? throw new ArgumentNullException(nameof(sendFileCardActivity));
     this.getMetadataActivity         = getMetadataActivity ?? throw new ArgumentNullException(nameof(getMetadataActivity));
     this.updateExportDataActivity    = updateExportDataActivity ?? throw new ArgumentNullException(nameof(updateExportDataActivity));
     this.handleExportFailureActivity = handleExportFailureActivity ?? throw new ArgumentNullException(nameof(handleExportFailureActivity));
 }