C# Class Panteon.Sdk.PanteonWorker

Inheritance: IPanteonWorker
Mostra file Open project: PanteonProject/Panteon.Sdk

Public Methods

Method Description
Dispose ( ) : void
Init ( bool autoRun ) : bool
Inspect ( ) : PanteonTaskInfo
LoadHistory ( System.DateTime @from = null, System.DateTime to = null ) : IEnumerable
Pause ( System.TimeSpan duration ) : void
Progress ( ProgressMessage message ) : void
Run ( DateTimeOffset>.Action actionToRun, bool autoRun = true ) : bool
Start ( DateTimeOffset lastKnownEvent = default(DateTimeOffset) ) : bool
Stop ( ) : bool
Update ( ScheduleInfo scheduleInfo ) : bool

Protected Methods

Method Description
PanteonWorker ( ILogger workerLogger, IWorkerSettings workerSettings, IHistoryStorage historyStorage ) : System

Private Methods

Method Description
ScheduledTask_OnException ( ScheduledTask task, Exception exception ) : void
Store ( string message ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Init() public abstract method

public abstract Init ( bool autoRun ) : bool
autoRun bool
return bool

Inspect() public method

public Inspect ( ) : PanteonTaskInfo
return Panteon.Sdk.Models.PanteonTaskInfo

LoadHistory() public method

public LoadHistory ( System.DateTime @from = null, System.DateTime to = null ) : IEnumerable
@from System.DateTime
to System.DateTime
return IEnumerable

PanteonWorker() protected method

protected PanteonWorker ( ILogger workerLogger, IWorkerSettings workerSettings, IHistoryStorage historyStorage ) : System
workerLogger ILogger
workerSettings IWorkerSettings
historyStorage IHistoryStorage
return System

Pause() public method

public Pause ( System.TimeSpan duration ) : void
duration System.TimeSpan
return void

Progress() public method

public Progress ( ProgressMessage message ) : void
message Panteon.Sdk.Models.ProgressMessage
return void

Run() public method

public Run ( DateTimeOffset>.Action actionToRun, bool autoRun = true ) : bool
actionToRun DateTimeOffset>.Action
autoRun bool
return bool

Start() public method

public Start ( DateTimeOffset lastKnownEvent = default(DateTimeOffset) ) : bool
lastKnownEvent DateTimeOffset
return bool

Stop() public method

public Stop ( ) : bool
return bool

Update() public method

public Update ( ScheduleInfo scheduleInfo ) : bool
scheduleInfo ScheduleInfo
return bool