Skip to content

GrainCollectionOptions Properties

Silo options for idle grain collection.

ActivationTimeout

getset
View source
public TimeSpan ActivationTimeout
Gets or sets the period after which the runtime cancels the System.Threading.CancellationToken passed to activation code, including Grain.OnActivateAsync and grain lifecycle participants.

ClassSpecificCollectionAge

getset
View source
public Dictionary<string, TimeSpan> ClassSpecificCollectionAge
Period of inactivity necessary for a grain to be available for collection and deactivation by grain type.

CollectionAge

getset
View source
public TimeSpan CollectionAge
Gets or sets the default period of inactivity necessary for a grain to be available for collection and deactivation.

DeactivationTimeout

getset
View source
public TimeSpan DeactivationTimeout
Gets or sets the period after which the runtime cancels the System.Threading.CancellationToken passed to deactivation code, including Grain.OnDeactivateAsync and grain lifecycle participants.

MemoryUsageLimitPercentage

getset
View source
public double MemoryUsageLimitPercentage
The memory usage percentage (0–100) at which grain collection is triggered. Must be greater than 0 and less than or equal to 100.