Property | Type | Description | |
---|---|---|---|
MinimumPeriod | System.Duration |
Method | Description | |
---|---|---|
AsyncTimer ( [ callback, System.Duration period = null, System.Duration dueTime = null, System.Duration minimumGap = null, |
Initializes a new instance of the AsyncTimer class.
|
|
AsyncTimer ( [ callback, int period = Timeout.Infinite, int dueTime, int minimumGap, |
Initializes a new instance of the AsyncTimer class.
|
|
AsyncTimer ( [ |
Initializes a new instance of the AsyncTimer class.
|
|
AsyncTimer ( [ |
Initializes a new instance of the AsyncTimer class.
|
|
Change ( System.Duration period = null, System.Duration dueTime = null, System.Duration minimumGap = null ) : void |
Changes the specified due time and period.
|
|
Change ( int period = null, int dueTime = null, int minimumGap = null ) : void |
Changes the specified due time and period.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
Method | Description | |
---|---|---|
ExecuteAsync ( |
||
TimerTask ( |
The timer task executes the callback asynchronously after set delays.
|
public AsyncTimer ( [ callback, System.Duration period = null, System.Duration dueTime = null, System.Duration minimumGap = null, |
||
callback | [ | The asynchronous method to be executed. |
period | System.Duration | The minimum gap between the start of the task invocation and the start of the previous task invocation (defautls to |
dueTime | System.Duration | The due time between the last time the timeouts were changed and the start of the task invocation (defautls to |
minimumGap | System.Duration | The minimum gap between the start of the task invocation and the end of the previous task invocation (defautls to |
pauseToken | The pause token for pasuing the timer. | |
errorHandler | Action |
The optional error handler. |
return | System |
public AsyncTimer ( [ callback, int period = Timeout.Infinite, int dueTime, int minimumGap, |
||
callback | [ | The callback. |
period | int | The minimum gap (in milliseconds) between the start of the task invocation and the start of the previous task invocation (defaults to |
dueTime | int | The due time (in milliseconds) between the last time the timeouts were changed and the start of the task invocation (defaults to 0ms). |
minimumGap | int | The minimum gap (in milliseconds) between the start of the task invocation and the end of the previous task invocation (defaults to 0ms). |
pauseToken | The pause token for pasuing the timer. | |
errorHandler | Action |
The optional error handler. |
return | System |
public AsyncTimer ( [ |
||
callback | [ |
The asynchronous method to be executed. |
period | System.Duration | The minimum gap between the start of the task invocation and the start of the previous task invocation (defautls to |
dueTime | System.Duration | The due time between the last time the timeouts were changed and the start of the task invocation (defautls to |
minimumGap | System.Duration | The minimum gap between the start of the task invocation and the end of the previous task invocation (defautls to |
pauseToken | The pause token for pasuing the timer. | |
errorHandler | Action |
The optional error handler. |
return | System |
public AsyncTimer ( [ |
||
callback | [ |
The callback. |
period | int | The minimum gap (in milliseconds) between the start of the task invocation and the start of the previous task invocation (defaults to |
dueTime | int | The due time (in milliseconds) between the last time the timeouts were changed and the start of the task invocation (defaults to 0ms). |
minimumGap | int | The minimum gap (in milliseconds) between the start of the task invocation and the end of the previous task invocation (defaults to 0ms). |
pauseToken | The pause token for pasuing the timer. | |
errorHandler | Action |
The optional error handler. |
return | System |
public Change ( System.Duration period = null, System.Duration dueTime = null, System.Duration minimumGap = null ) : void | ||
period | System.Duration | The optional minimum gap between the start of the task invocation and the start of the previous task invocation; use |
dueTime | System.Duration | The optional due time between the last time the timeouts were changed and the start of the task invocation; use |
minimumGap | System.Duration | The optional minimum gap between the start of the task invocation and the end of the previous task invocation; use |
return | void |
public Change ( int period = null, int dueTime = null, int minimumGap = null ) : void | ||
period | int | The optional minimum gap (in milliseconds) between the start of the task invocation and the start of the previous task invocation; use |
dueTime | int | The optional due time (in milliseconds) between the last time the timeouts were changed and the start of the task invocation; use |
minimumGap | int | The optional minimum gap (in milliseconds) between the start of the task invocation and the end of the previous task invocation; use |
return | void |