Class PollOptions
Non-generic poll options that accepts IPollingJob callbacks.
Use this to configure polling without depending on provider-specific job types.
Assembly: Glitch9.IO.dll
Syntax
public sealed class PollOptions : IPollHandler
Constructors
|
Edit this page
View Source
PollOptions(Action<IPollingJob, TimeSpan>, TimeSpan?, TimeSpan?)
Declaration
public PollOptions(Action<IPollingJob, TimeSpan> onTick = null, TimeSpan? interval = null, TimeSpan? timeout = null)
Parameters
Properties
|
Edit this page
View Source
Interval
Declaration
public TimeSpan Interval { get; set; }
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; set; }
Property Value
Methods
|
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