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

Public Types

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

Public Member Functions

 Args (string[] args)
 

Protected Member Functions

virtual void OnProcessArg (string arg)
 Subclasses should implement this and store the argument value appropriately More...
 

Properties

bool Unattended [get]
 Indicates that the application will expect some processing signal other than keyboard input to terminate its execution. This is highly dependent upon the specific application and may not always be applicable.
More...
 
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 > ServiceInstallerParamList [get]
 Gets the parameter list needed to invoke the service installer. More...
 
string HostName [get]
 
int Port [get]
 

Member Function Documentation

◆ OnProcessArg()

virtual void Apac.Service.Args.OnProcessArg ( string  arg)
inlineprotectedvirtual

Subclasses should implement this and store the argument value appropriately

Parameters
argThe incoming command line argument, which may be parsed to determine name/value identity.

Property Documentation

◆ Account

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

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

◆ Action

ConsoleAction Apac.Service.Args.Action
get

Gets the action specified by command line flags.

◆ ServiceInstallerParamList

List<string> Apac.Service.Args.ServiceInstallerParamList
get

Gets the parameter list needed to invoke the service installer.

◆ StartMode

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

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

◆ Unattended

bool Apac.Service.Args.Unattended
get

Indicates that the application will expect some processing signal other than keyboard input to terminate its execution. This is highly dependent upon the specific application and may not always be applicable.


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