AP&C API Reference
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
Apac.Services.Args Class Reference

An abstraction of command line arguments that handles parsing flags and exposes the values as properties. This base class includes the flags needed to control launching as a service or console app or as the service installer with its various options (including un-installation). More...

Public Types

enum class  ConsoleAction {
  Unknown , Install , Uninstall , Execute ,
  Help
}
 

Public Member Functions

 Args (string[] args)
 

Protected Member Functions

virtual void OnProcessArg (string arg)
 

Properties

System.ServiceProcess.ServiceStartMode StartMode [get]
 Gets the service start mode specified by command line flags. Defaults to Manual. More...
 
System.ServiceProcess.ServiceAccount Account [get]
 Gets the service account specified by command line flags. Defaults to User. More...
 
ConsoleAction Action [get]
 Gets the action specified by command line flags. More...
 
List< string > PList [get]
 Gets the parameter list needed to invoke the service installer. More...
 

Detailed Description

An abstraction of command line arguments that handles parsing flags and exposes the values as properties. This base class includes the flags needed to control launching as a service or console app or as the service installer with its various options (including un-installation).

Property Documentation

◆ Account

System.ServiceProcess.ServiceAccount Apac.Services.Args.Account
get

Gets the service account specified by command line flags. Defaults to User.

◆ Action

ConsoleAction Apac.Services.Args.Action
get

Gets the action specified by command line flags.

◆ PList

List<string> Apac.Services.Args.PList
get

Gets the parameter list needed to invoke the service installer.

◆ StartMode

System.ServiceProcess.ServiceStartMode Apac.Services.Args.StartMode
get

Gets the service start mode specified by command line flags. Defaults to Manual.


The documentation for this class was generated from the following file: