Méthode | Description | |
---|---|---|
Start ( System.Action action, int intervalInMilliseconds = Timeout.Infinite, int delayInMilliseconds, int duration = Timeout.Infinite, int maxIterations = -1, bool synchronous = false, |
Starts the periodic task. Exceptions that occur in the action need to be handled in the action itself. These exceptions will not be bubbled up to the periodic task. |
Méthode | Description | |
---|---|---|
CheckIfCancelled ( |
Checks if cancelled.
|
|
MainPeriodicTaskAction ( int intervalInMilliseconds, int delayInMilliseconds, int duration, int maxIterations, |
Mains the periodic task action.
|
public static Start ( System.Action action, int intervalInMilliseconds = Timeout.Infinite, int delayInMilliseconds, int duration = Timeout.Infinite, int maxIterations = -1, bool synchronous = false, |
||
action | System.Action | The action. |
intervalInMilliseconds | int | The interval in milliseconds. |
delayInMilliseconds | int | The delay in milliseconds, i.e. how long it waits to kick off the timer. |
duration | int |
/// The duration.
/// |
maxIterations | int | The max iterations. |
synchronous | bool |
/// if set to |
cancelToken | The cancel token. | |
periodicTaskCreationOptions | TaskCreationOptions |
/// |
Résultat | Task |