GrainTimerCreationOptions
struct
Namespace: Orleans.Runtime
Options for creating grain timers.
public readonly struct GrainTimerCreationOptions : IEquatable<GrainTimerCreationOptions>Constructors
GrainTimerCreationOptionsOptions for creating grain timers.GrainTimerCreationOptions(TimeSpan, TimeSpan)Initializes a newGrainTimerCreationOptionsinstance.
Properties
DueTimeASystem.TimeSpanrepresenting the amount of time to delay before invoking the callback method specified when theIGrainTimerwas constructed. SpecifySystem.Threading.Timeout.InfiniteTimeSpanto prevent the timer from starting. SpecifySystem.TimeSpan.Zeroto start the timer immediately.InterleaveGets a value indicating whether callbacks scheduled by this timer are allowed to interleave execution with other timers and grain calls. Defaults tofalse.KeepAliveGets a value indicating whether callbacks scheduled by this timer should extend the lifetime of the grain activation. Defaults tofalse.PeriodThe time interval between invocations of the callback method specified when theIGrainTimerwas constructed. SpecifySystem.Threading.Timeout.InfiniteTimeSpanto disable periodic signaling.
Methods
Equals(GrainTimerCreationOptions)Indicates whether the current object is equal to another object of the same type.Equals(object?)Indicates whether this instance and a specified object are equal.GetHashCodeReturns the hash code for this instance.operator ==(GrainTimerCreationOptions, GrainTimerCreationOptions)Determines whether two timer creation options are equal.operator !=(GrainTimerCreationOptions, GrainTimerCreationOptions)Determines whether two timer creation options are unequal.
