Skip to content

Commit

Permalink
adding new fields to messages for external app executions
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth authored and mocsharp committed Aug 12, 2023
1 parent 07c0a06 commit e85bd5e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/Messaging/Common/ExportRequestType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

namespace Monai.Deploy.Messaging.Common
{
public enum ExportRequestType
{
None = 0,
ExternalProcessing
}
}
12 changes: 7 additions & 5 deletions src/Messaging/Events/ExportRequestEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

using System.ComponentModel.DataAnnotations;
using Monai.Deploy.Messaging.Common;
using Newtonsoft.Json;

namespace Monai.Deploy.Messaging.Events
Expand Down Expand Up @@ -76,12 +77,13 @@ public class ExportRequestEvent : EventBase
public List<string> ErrorMessages { get; private set; }

/// <summary>
/// A list of data output plug-in type names to be executed by the export services.
/// Each string must be a fully-qualified type name.
/// E.g. <code>MyCompnay.MyProject.MyNamepsace.MyPlugin, MyCompnay.MyProject.MyNamepsace</code> where
/// <code>MyCompnay.MyProject.MyNamepsace</code> is the name of the assembly (DLL).
/// Gets or set the ExportRequest type.
/// For standard exports this will be ExportRequestType.None
/// but for exports to external apps this will be ExportRequestType.ExternalProcessing
/// </summary>
public List<string> PluginAssemblies { get; private set; }
[JsonProperty(PropertyName = "export_request")]
[Required]
public ExportRequestType ExportRequest { get; set; } = default!;

public ExportRequestEvent()
{
Expand Down

0 comments on commit e85bd5e

Please sign in to comment.