C# Class sos.spooler.PowershellAdapter

Inheritance: ScriptAdapter
Exibir arquivo Open project: sos-berlin/scheduler-engine

Public Methods

Method Description
PowershellAdapter ( System.Log contextLog, Task contextTask, Job contextJob, Spooler contextSpooler, String scriptContent ) : System
spooler_close ( ) : void
spooler_exit ( ) : void
spooler_init ( ) : bool
spooler_on_error ( ) : void
spooler_on_success ( ) : void
spooler_open ( ) : bool
spooler_process ( ) : bool
spooler_process_after ( bool spoolerProcessResult ) : bool
spooler_process_before ( ) : bool
spooler_task_after ( ) : void
spooler_task_before ( ) : bool

Private Methods

Method Description
CheckLastExitCode ( bool useLocalScope ) : void
Close ( ) : void
GetErrorMessage ( ErrorRecord errorRecord ) : string
GetReturnValue ( string result, bool defaultValue ) : bool
InitializeScript ( bool useLocalScope ) : void
InvokeCommand ( String command, bool useLocalScope ) : IEnumerable
InvokeFunction ( String functionName, bool param = null ) : string
InvokeScript ( String command, bool useLocalScope ) : string
ParseScript ( ) : void

Method Details

PowershellAdapter() public method

public PowershellAdapter ( System.Log contextLog, Task contextTask, Job contextJob, Spooler contextSpooler, String scriptContent ) : System
contextLog System.Log
contextTask Task
contextJob Job
contextSpooler Spooler
scriptContent String
return System

spooler_close() public method

public spooler_close ( ) : void
return void

spooler_exit() public method

public spooler_exit ( ) : void
return void

spooler_init() public method

public spooler_init ( ) : bool
return bool

spooler_on_error() public method

public spooler_on_error ( ) : void
return void

spooler_on_success() public method

public spooler_on_success ( ) : void
return void

spooler_open() public method

public spooler_open ( ) : bool
return bool

spooler_process() public method

public spooler_process ( ) : bool
return bool

spooler_process_after() public method

public spooler_process_after ( bool spoolerProcessResult ) : bool
spoolerProcessResult bool
return bool

spooler_process_before() public method

public spooler_process_before ( ) : bool
return bool

spooler_task_after() public method

public spooler_task_after ( ) : void
return void

spooler_task_before() public method

public spooler_task_before ( ) : bool
return bool