Interface ICommandRunner
public interface ICommandRunner
Methods
Run(ExecuteDelegate, Command, DaemonAction, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
Task<PiaResults> Run(ExecuteDelegate execute, Command command, DaemonAction action, PiaCtlOptions options, bool debug = false)
Parameters
executeExecuteDelegateA delegate representing the process call to execute the
piactlcommand line utilitycommandCommandA Command enum value representing a top-level piactl command.
actionDaemonActionA DaemonAction enum value representing a specific action to be taken by the PIA daemon.
optionsPiaCtlOptionsA PiaCtlOptions instance.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.
Run(ExecuteDelegate, Command, DaemonAction, bool, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
Task<PiaResults> Run(ExecuteDelegate execute, Command command, DaemonAction action, bool argument, PiaCtlOptions options, bool debug = false)
Parameters
executeExecuteDelegateA delegate representing the process call to execute the
piactlcommand line utilitycommandCommandA Command enum value representing a top-level piactl command.
actionDaemonActionA DaemonAction enum value representing a specific action to be taken by the PIA daemon.
argumentboolA bool argument to be passed to the piactl daemon.
optionsPiaCtlOptionsThe options to configure PiaCtl.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.
Run(ExecuteDelegate, Command, DaemonAction, string, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
Task<PiaResults> Run(ExecuteDelegate execute, Command command, DaemonAction action, string argument, PiaCtlOptions options, bool debug = false)
Parameters
executeExecuteDelegateA delegate representing the process call to execute the
piactlcommand line utilitycommandCommandA Command enum value representing a top-level piactl command.
actionDaemonActionA DaemonAction enum value representing a specific action to be taken by the PIA daemon.
argumentstringA string argument to be passed to the piactl daemon.
optionsPiaCtlOptionsThe options to configure PiaCtl.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.
Run(ExecuteDelegate, Command, DaemonAction, string, string, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
Task<PiaResults> Run(ExecuteDelegate execute, Command command, DaemonAction action, string argument1, string argument2, PiaCtlOptions options, bool debug = false)
Parameters
executeExecuteDelegateA delegate representing the process call to execute the
piactlcommand line utilitycommandCommandA Command enum value representing a top-level piactl command.
actionDaemonActionA DaemonAction enum value representing a specific action to be taken by the PIA daemon.
argument1stringA string argument to be passed to the piactl daemon.
argument2stringA string argument to be passed to the piactl daemon.
optionsPiaCtlOptionsThe options to configure PiaCtl.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.
Run(ExecuteTimedDelegate, Command, DaemonAction, uint, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
Task<PiaResults> Run(ExecuteTimedDelegate execute, Command command, DaemonAction action, uint argument, PiaCtlOptions options, bool debug = false)
Parameters
executeExecuteTimedDelegateA delegate representing the process call to execute the
piactlcommand line utilitycommandCommandA Command enum value representing a top-level piactl command.
actionDaemonActionA DaemonAction enum value representing a specific action to be taken by the PIA daemon.
argumentuintA uint argument to be passed to the Command Line Wrapper
optionsPiaCtlOptionsThe options to configure PiaCtl.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.