C# Class Synoptic.Service.PollingDaemonBase

Inheritance: IServiceDaemon
Exibir arquivo Open project: bitdiff/synoptic

Public Methods

Method Description
OnError ( Exception e, CancellationToken cancellationToken ) : void
OnStarted ( ) : void
OnStopped ( ) : void
Run ( CancellationTokenSource cts ) : void
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
PollingDaemonBase ( IDaemonLogger logger, System.TimeSpan interval, IPollingPreempter preempter = null ) : System

Private Methods

Method Description
ConfigureTaskForErrors ( Task task, CancellationToken>.Action errorHandler, CancellationToken cancellationToken ) : void
Execute ( CancellationToken ct ) : void
Preempted ( object sender, EventArgs e ) : void
StartPreempter ( CancellationToken cancellationToken ) : void

Method Details

OnError() public abstract method

public abstract OnError ( Exception e, CancellationToken cancellationToken ) : void
e System.Exception
cancellationToken System.Threading.CancellationToken
return void

OnStarted() public method

public OnStarted ( ) : void
return void

OnStopped() public abstract method

public abstract OnStopped ( ) : void
return void

PollingDaemonBase() protected method

protected PollingDaemonBase ( IDaemonLogger logger, System.TimeSpan interval, IPollingPreempter preempter = null ) : System
logger IDaemonLogger
interval System.TimeSpan
preempter IPollingPreempter
return System

Run() public abstract method

public abstract Run ( CancellationTokenSource cts ) : void
cts System.Threading.CancellationTokenSource
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void