BootStrapper
Module responsible for cronix service initialization.
Functions and values
Function or value | Description |
InitService (args, startupHandler)
Signature: (args:string [] * startupHandler:StartupHandler) -> Result<string,string>
|
Initializes the cronix service
|
invokeStartupHandler state
Signature: state:StartupHandlerState -> Result<StartupHandlerState,string>
|
Invokes the startup handler.
|
invokeStartupScript state
Signature: state:StartupScriptState -> Result<StartupScriptState,string>
|
Invokes the compiled startup script.
|
isDebug ()
Signature: unit -> bool
|
Returns true if service is run from console.
|
logger
Signature: Logger
|
Boostrapper module specific logger.
|
parseOption input
Signature: input:Option<'a> -> 'a option
Type parameters: 'a
|
Changes the Some(null) into None value.
|
printGuide ()
Signature: unit -> unit
|
Prints the user guide.
|
runService startupHandler debug
Signature: startupHandler:Option<StartupHandler> -> debug:bool -> unit
|
Runs the cronix service. If its run in console mode then the service will start immediately. If not then the ServiceProcessAdapter will start.
|
setupService (...)
Signature: scheduleManager:IScheduleManager -> startupHandler:Option<StartupHandler> -> unit
|
Setups up the cronix service
|