Note

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

Access to this page requires authorization. You can try .

GrainTimerCreationOptions Struct

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.

Options for creating grain timers.

public readonly struct GrainTimerCreationOptions
type GrainTimerCreationOptions = struct
Public Structure GrainTimerCreationOptions
Inheritance
GrainTimerCreationOptions

Constructors

Name Description
GrainTimerCreationOptions()
Obsolete.

Options for creating grain timers.

GrainTimerCreationOptions(TimeSpan, TimeSpan)

Initializes a new GrainTimerCreationOptions instance.

Properties

Name Description
DueTime

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 starting. Specify Zero to start the timer immediately.

Interleave

Gets a value indicating whether callbacks scheduled by this timer are allowed to interleave execution with other timers and grain calls. Defaults to false.

KeepAlive

Gets a value indicating whether callbacks scheduled by this timer should extend the lifetime of the grain activation. Defaults to false.

Period

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

Applies to