C# Class Panteon.Sdk.PanteonWorker

Inheritance: IPanteonWorker
Afficher le fichier Open project: PanteonProject/Panteon.Sdk

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
PanteonWorker ( ILogger workerLogger, IWorkerSettings workerSettings, IHistoryStorage historyStorage ) : System

Private Methods

Méthode Description
ScheduledTask_OnException ( ScheduledTask task, Exception exception ) : void
Store ( string message ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Init() public abstract méthode

public abstract Init ( bool autoRun ) : bool
autoRun bool
Résultat bool

Inspect() public méthode

public Inspect ( ) : PanteonTaskInfo
Résultat Panteon.Sdk.Models.PanteonTaskInfo

LoadHistory() public méthode

public LoadHistory ( System.DateTime @from = null, System.DateTime to = null ) : IEnumerable
@from System.DateTime
to System.DateTime
Résultat IEnumerable

PanteonWorker() protected méthode

protected PanteonWorker ( ILogger workerLogger, IWorkerSettings workerSettings, IHistoryStorage historyStorage ) : System
workerLogger ILogger
workerSettings IWorkerSettings
historyStorage IHistoryStorage
Résultat System

Pause() public méthode

public Pause ( System.TimeSpan duration ) : void
duration System.TimeSpan
Résultat void

Progress() public méthode

public Progress ( ProgressMessage message ) : void
message Panteon.Sdk.Models.ProgressMessage
Résultat void

Run() public méthode

public Run ( DateTimeOffset>.Action actionToRun, bool autoRun = true ) : bool
actionToRun DateTimeOffset>.Action
autoRun bool
Résultat bool

Start() public méthode

public Start ( DateTimeOffset lastKnownEvent = default(DateTimeOffset) ) : bool
lastKnownEvent DateTimeOffset
Résultat bool

Stop() public méthode

public Stop ( ) : bool
Résultat bool

Update() public méthode

public Update ( ScheduleInfo scheduleInfo ) : bool
scheduleInfo ScheduleInfo
Résultat bool