Class PollHandlerBase<T>
Inheritance
PollHandlerBase<T>
Assembly: Glitch9.IO.dll
Syntax
public abstract class PollHandlerBase<T> : IPollHandler
Type Parameters
Constructors
|
Edit this page
View Source
PollHandlerBase(Action<T, TimeSpan>, TimeSpan?, TimeSpan?)
Declaration
protected PollHandlerBase(Action<T, TimeSpan> handler = null, TimeSpan? interval = null, TimeSpan? timeout = null)
Parameters
Properties
|
Edit this page
View Source
Interval
Declaration
public TimeSpan Interval { get; }
Property Value
|
Edit this page
View Source
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
|
Edit this page
View Source
Timeout
Declaration
public TimeSpan Timeout { get; }
Property Value
Methods
|
Edit this page
View Source
ConvertJob(IPollingJob)
Declaration
protected virtual T ConvertJob(IPollingJob job)
Parameters
Returns
|
Edit this page
View Source
OnTick(IPollingJob, TimeSpan)
Called on every polling tick with the current job and elapsed time.
Declaration
public void OnTick(IPollingJob job, TimeSpan elapsed)
Parameters
Implements
Extension Methods