Edit

Share via


GrainTimerCreationOptions Struct

Definition

Options for creating grain timers.

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

Constructors

GrainTimerCreationOptions()
Obsolete.

Options for creating grain timers.

GrainTimerCreationOptions(TimeSpan, TimeSpan)

Initializes a new GrainTimerCreationOptions instance.

Properties

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