Edit

Share via


GrainTimerCreationOptions.KeepAlive Property

Definition

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

public bool KeepAlive { get; init; }
member this.KeepAlive : bool with get, set
Public Property KeepAlive As Boolean

Property Value

Remarks

If this value is false, timer callbacks will not extend a grain activation's lifetime. If a grain is only processing this timer's callbacks and no other messages, the grain will be collected after its idle collection period expires. If this value is true, timer callback will extend a grain activation's lifetime. If the timer period is shorter than the grain's idle collection period, the grain will not be collected due to idleness.

Applies to