Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IGrainTimer.Change(TimeSpan, TimeSpan) Method

Definition

Namespace:
Orleans.Runtime
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core.Abstractions v10.0.0
Package:
Microsoft.Orleans.Core.Abstractions v8.2.0
Package:
Microsoft.Orleans.Core.Abstractions v9.0.0
Package:
Microsoft.Orleans.Core.Abstractions v9.1.2

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Changes the start time and the interval between method invocations for a timer, using TimeSpan values to measure time intervals.

public void Change(TimeSpan dueTime, TimeSpan period);
abstract member Change : TimeSpan * TimeSpan -> unit
Public Sub Change (dueTime As TimeSpan, period As TimeSpan)

Parameters

dueTime
TimeSpan

A TimeSpan representing the amount of time to delay before invoking the callback method specified when the IGrainTimer was constructed. Specify InfiniteTimeSpan to prevent the timer from restarting. Specify Zero to restart the timer immediately.

period
TimeSpan

The time interval between invocations of the callback method specified when the timer was constructed. Specify InfiniteTimeSpan to disable periodic signaling.

Exceptions

The dueTime or period parameter, in milliseconds, is less than -1 or greater than 4294967294.

Applies to