From 0fede2486670da3d729538939a9dcb73df9904aa Mon Sep 17 00:00:00 2001 From: xieguigang Date: Thu, 3 Aug 2023 16:33:00 +0800 Subject: [PATCH] use a custom attribute for define a custom IPC parallel process? --- src/Parallel/IpcParallel/AppHost.vb | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/Parallel/IpcParallel/AppHost.vb diff --git a/src/Parallel/IpcParallel/AppHost.vb b/src/Parallel/IpcParallel/AppHost.vb new file mode 100644 index 0000000..a4bee04 --- /dev/null +++ b/src/Parallel/IpcParallel/AppHost.vb @@ -0,0 +1,31 @@ + +''' +''' define the application host information for the IPC parallel +''' +''' +Public Class AppHost : Inherits Attribute + + ''' + ''' executable name of the application host + ''' + ''' + Public ReadOnly Property AppName As String + ''' + ''' the commandline argument string that could be used as the protocol handler of this IPC parallel + ''' + ''' + Public ReadOnly Property Protocol As String + + ''' + ''' + ''' + ''' + ''' + ''' the commandline arguments template string + ''' + Sub New(app As String, args As String) + AppName = app + Protocol = args + End Sub + +End Class