public DownloadQueueItem( string segmentationId, string modelId, string resultsDirectory, IEnumerable <byte[]> referenceDicomFiles, string calledApplicationEntityTitle, string callingApplicationEntityTitle, GatewayApplicationEntity destinationApplicationEntity, string tagReplacementJsonString, Guid associationGuid, DateTime associationDateTime, int dequeueCount, bool isDryRun) : base( calledApplicationEntityTitle, callingApplicationEntityTitle, associationGuid, associationDateTime, dequeueCount) { SegmentationID = segmentationId; ModelId = modelId; ResultsDirectory = !string.IsNullOrWhiteSpace(resultsDirectory) ? resultsDirectory : throw new ArgumentException(nameof(ResultsDirectory)); ReferenceDicomFiles = referenceDicomFiles?.ToArray() ?? throw new ArgumentNullException(nameof(referenceDicomFiles)); DestinationApplicationEntity = destinationApplicationEntity; TagReplacementJsonString = tagReplacementJsonString; IsDryRun = isDryRun; }
/// <summary> /// Initializes a new instance of the <see cref="DownloadQueueItem"/> class. /// </summary> /// <param name="segmentationId">The segmentation unique identifier.</param> /// <param name="modelId">The model identifier.</param /// <param name="resultsDirectory">The directory to store all results.</param> /// <param name="referenceDicomFiles">The reference dicom files.</param> /// <param name="calledApplicationEntityTitle">The original association called application entity title.</param> /// <param name="callingApplicationEntityTitle">The original association calling application entity title.</param> /// <param name="destinationApplicationEntity">The destination application entity (can be null, and will be refreshed in the push service).</param> /// <param name="tagReplacementJsonString">The tag replacements as a Json string.</param> /// <param name="associationGuid">The association unique identifier.</param> /// <param name="associationDateTime">The association date time.</param> /// <param name="isDryRun">If this is a dry run download, no push to destination.</param> public DownloadQueueItem( string segmentationId, string modelId, string resultsDirectory, IEnumerable <byte[]> referenceDicomFiles, string calledApplicationEntityTitle, string callingApplicationEntityTitle, GatewayApplicationEntity destinationApplicationEntity, string tagReplacementJsonString, Guid associationGuid, DateTime associationDateTime, bool isDryRun) : this( segmentationId : segmentationId, modelId : modelId, resultsDirectory : resultsDirectory, referenceDicomFiles : referenceDicomFiles, calledApplicationEntityTitle : calledApplicationEntityTitle, callingApplicationEntityTitle : callingApplicationEntityTitle, destinationApplicationEntity : destinationApplicationEntity, tagReplacementJsonString : tagReplacementJsonString, associationGuid : associationGuid, associationDateTime : associationDateTime, dequeueCount : 0, isDryRun : isDryRun) { }
/// <summary> /// Initializes a new instance of the <see cref="PushQueueItem"/> class. /// </summary> /// <param name="destinationApplicationEntity">The destination application entity.</param> /// <param name="calledApplicationEntityTitle">The original association called application entity title.</param> /// <param name="callingApplicationEntityTitle">The original association calling application entity title.</param> /// <param name="associationGuid">The association unique identifier.</param> /// <param name="associationDateTime">The association date time.</param> /// <param name="filePaths">The collection of file paths that must be sent in the push.</param> public PushQueueItem( GatewayApplicationEntity destinationApplicationEntity, string calledApplicationEntityTitle, string callingApplicationEntityTitle, Guid associationGuid, DateTime associationDateTime, params string[] filePaths) : this( destinationApplicationEntity : destinationApplicationEntity, calledApplicationEntityTitle : calledApplicationEntityTitle, callingApplicationEntityTitle : callingApplicationEntityTitle, associationGuid : associationGuid, associationDateTime : associationDateTime, dequeueCount : 0, filePaths : filePaths) { }
public PushQueueItem( GatewayApplicationEntity destinationApplicationEntity, string calledApplicationEntityTitle, string callingApplicationEntityTitle, Guid associationGuid, DateTime associationDateTime, int dequeueCount, params string[] filePaths) : base( calledApplicationEntityTitle, callingApplicationEntityTitle, associationGuid, associationDateTime, dequeueCount) { DestinationApplicationEntity = destinationApplicationEntity; FilePaths = filePaths; }