-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Neil South <[email protected]>
- Loading branch information
1 parent
8fec32e
commit a2f4630
Showing
1 changed file
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
| ||
using Monai.Deploy.Messaging.Common; | ||
using Newtonsoft.Json; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Monai.Deploy.Messaging.Events | ||
{ | ||
internal class ArtifactsReceivedEvent | ||
public class ArtifactsReceivedEvent : EventBase | ||
{ | ||
/// <summary> | ||
/// Gets or sets the workflow instanceID generated by the Workflow Manager. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "workflow_instance_id")] | ||
[JsonPropertyName("workflow_instance_id")] | ||
[Required] | ||
public string WorkflowInstanceId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Gets or sets the export task ID generated by the Workflow Manager. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "task_id")] | ||
[JsonPropertyName("task_id")] | ||
[Required] | ||
public string TaskId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Gets or set the correlation ID. | ||
/// For DIMSE, the correlation ID is the UUID associated with the first DICOM association received. | ||
/// For ACR, use the Transaction ID in the original request. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "correlation_id")] | ||
[JsonPropertyName("correlation_id")] | ||
[Required] | ||
public string CorrelationId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Gets or set the list of artifacts. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "artifacts")] | ||
[JsonPropertyName("artifacts")] | ||
[Required] | ||
public List<Artifact> Artifacts { get; set; } = new List<Artifact>(); | ||
} | ||
} |