Public Types | |
enum | Mode |
Public Member Functions | |
delegate void | HandlerProcessRefersToShellProcess (ShellProcessEvent evt) |
delegate void | HandlerProcessTerminated (ProcessTerminatedEvent evt) |
ProcessStarter (ProcessStartInfo progrmToRun) | |
ProcessStarter (ProcessStartInfo programToRun, MsgEventHandler outputDataReceived, MsgEventHandler errorDataReceived) | |
ProcessStarter (ProcessStartInfo programToRun, MsgEventHandler dataReceived) | |
System.Diagnostics.Process | Start () |
bool | WaitForExit (System.Diagnostics.Process process) |
Static Public Member Functions | |
static void | PostProcessTerminated (ProcessTerminatedEvent evt) |
Static Public Attributes | |
static event HandlerProcessRefersToShellProcess | EvtFinishedShellProcess |
static event HandlerProcessTerminated | EvtProcessTerminated |
static event HandlerProcessRefersToShellProcess | EvtRunningShellProcess |
static event HandlerProcessRefersToShellProcess | EvtStartedShellProcess |
Properties | |
static Mode | ConfiguredMode [get, set] |
static Mode | EffectiveMode [get] |
System.Diagnostics.ProcessStartInfo | StartInfo [get] |
Defines some opportunities to configure the use of the System.Diagnostics.Process class.
wx.ProcessUtils.ProcessStarter.ProcessStarter | ( | ProcessStartInfo | programToRun, | |
MsgEventHandler | dataReceived | |||
) |
Creates an instance describing the program that shall be startet and providing event handlers for receiving output and error data.
programToRun | Info to start the program | |
dataReceived | Event handler that will be called on receiving output or error data. Please note, that this might be emulated, i.e. all events will be raised AFTER the process ended. Use null here if you do not want to use this feature. |
wx.ProcessUtils.ProcessStarter.ProcessStarter | ( | ProcessStartInfo | programToRun, | |
MsgEventHandler | outputDataReceived, | |||
MsgEventHandler | errorDataReceived | |||
) |
Creates an instance describing the program that shall be startet and providing event handlers for receiving output and error data.
programToRun | Info to start the program | |
outputDataReceived | Event handler that will be called on receiving output data. Please note, that this might be emulated, i.e. all events will be raised AFTER the process ended. Use null here if you do not want to use this feature. | |
errorDataReceived | Event handler that will be called on receiving error data. Please note, that this might be emulated, i.e. all events will be raised AFTER the process ended. Use null here if you do not want to use this feature. |
wx.ProcessUtils.ProcessStarter.ProcessStarter | ( | ProcessStartInfo | progrmToRun | ) |
Creates an instance describing the program that shall be startet and providing event handlers for receiving output and error data.
programToRun | Info to start the program |
delegate void wx.ProcessUtils.ProcessStarter.HandlerProcessRefersToShellProcess | ( | ShellProcessEvent | evt | ) |
delegate void wx.ProcessUtils.ProcessStarter.HandlerProcessTerminated | ( | ProcessTerminatedEvent | evt | ) |
static void wx.ProcessUtils.ProcessStarter.PostProcessTerminated | ( | ProcessTerminatedEvent | evt | ) | [static] |
This will post an event to all handlers registeredat EvtProcessTerminated
.
evt | The event that will be posted. |
System.Diagnostics.Process wx.ProcessUtils.ProcessStarter.Start | ( | ) |
This starts the program that has been configured by the start info passed to the ctor and this will also raise all output events.
bool wx.ProcessUtils.ProcessStarter.WaitForExit | ( | System.Diagnostics.Process | process | ) |
Use this after starting a process when waiting for termination. This method will raise a EvtStartedShellProcess
in order to inform interested parties and then call System.Diagnostics.Process.WaitForExit().
This method will also raise events of type EvtRunningShellProcess
in order to provide user interfaces with an opportunity to cancel the process. Finally, if the process has not been killed, this method raises an EvtFinishedShellProcess
.
process | Process that this trace shall wait for. |
event HandlerProcessRefersToShellProcess wx.ProcessUtils.ProcessStarter.EvtFinishedShellProcess [static] |
This event will be raised after a shell process terminated successfully.
event HandlerProcessTerminated wx.ProcessUtils.ProcessStarter.EvtProcessTerminated [static] |
This will be raised when the build process terminates.
event HandlerProcessRefersToShellProcess wx.ProcessUtils.ProcessStarter.EvtRunningShellProcess [static] |
This event will be raised while a shell process runs
event HandlerProcessRefersToShellProcess wx.ProcessUtils.ProcessStarter.EvtStartedShellProcess [static] |
This event will be raised immediately after the build process started a shell process e.g. in order to run a command tool like a compiler.
Mode wx.ProcessUtils.ProcessStarter.ConfiguredMode [static, get, set] |
This is the mode that has been configured.
Mode wx.ProcessUtils.ProcessStarter.EffectiveMode [static, get] |
This is the mode that will actually be used by the instances. This equals the configured mode with the exception of Mode.UsePlatformID that will be replaced according to the current platform.
System.Diagnostics.ProcessStartInfo wx.ProcessUtils.ProcessStarter.StartInfo [get] |
Description of the program to run.