PeanutButter
|
Public Types | |
enum | ExitCodes { Success = 0 , CommandlineArgumentError , Failure , ShowedHelp , InstallFailed , UninstallFailed } |
Codes issued at exit. More... |
Public Member Functions | |
ServiceCommandlineOptions () | |
parameterless constructor to be used with something else that parses arguments, eg EasyArgs | |
ServiceCommandlineOptions (string[] args, string helpHeading, string copyRightInformation=null) | |
Construct the commandline arguments, using the string[] args provided to the program. |
Properties | |
bool | Install [get, set] |
Instructs the service to install itself. | |
bool | Uninstall [get, set] |
Instructs the service to uninstall itself. | |
bool | RunOnce [get, set] |
Instructs the service to run one round of operations and then exit. | |
bool | Debug [get, set] |
Instructs the service to run continually, with logging set to ALL. | |
int | Wait [get, set] |
Instructs the service to wait this many seconds before actually doing a round of work for RunOnce. | |
bool | ShowVersion [get, set] |
Instructs the service to display its current version. | |
bool | StartService [get, set] |
Instructs the service to start itself, if it is registered. | |
bool | StopService [get, set] |
Instructs the service to stop itself, if it is registered. | |
bool | ManualStart [get, set] |
Instructs the service to install with manual startup, when invoked to install itself. | |
bool | Disabled [get, set] |
Instructs the service to install itself disabled, when invoked to install itself. |
Codes issued at exit.
PeanutButter.ServiceShell.ServiceCommandlineOptions.ServiceCommandlineOptions | ( | string[] | args, |
string | helpHeading, | ||
string | copyRightInformation = null ) |
Construct the commandline arguments, using the string[] args provided to the program.
args | |
helpHeading | |
copyRightInformation |
|
getset |
Instructs the service to run continually, with logging set to ALL.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to install itself disabled, when invoked to install itself.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to install itself.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to install with manual startup, when invoked to install itself.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to run one round of operations and then exit.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to display its current version.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to start itself, if it is registered.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to stop itself, if it is registered.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to uninstall itself.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.
|
getset |
Instructs the service to wait this many seconds before actually doing a round of work for RunOnce.
Implements PeanutButter.ServiceShell.IServiceCommandlineOptions.