Class CommandRunner
Formats and executes a piactl command line command.
public class CommandRunner : ICommandRunner
- Inheritance
-
CommandRunner
- Implements
- Inherited Members
Methods
Run(ExecuteDelegate, Command, DaemonAction, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
public 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.
public 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.
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, string, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
public 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.
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, string, string, PiaCtlOptions, bool)
Formats and executes a piactl command line command.
public 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.
optionsPiaCtlOptionsA PiaCtlOptions instance.
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.
public 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
optionsPiaCtlOptionsA PiaCtlOptions instance.
debugboolPrint debug logs to stderr.
Returns
- Task<PiaResults>
A
Task<PiaResults>containing standard output and standard error results.