StatePersistenceAttribute Class

Definition

Indicates whether the actor state should be volatile (in-memory only), persisted, or not stored at all. The store type given to this attribute must match the type of state provider used in the actor service.

[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class StatePersistenceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)>]
type StatePersistenceAttribute = class
    inherit Attribute
Public NotInheritable Class StatePersistenceAttribute
Inherits Attribute
Inheritance
StatePersistenceAttribute
Attributes

Remarks

The StatePersistence attribute is not inherited by derived class, each Actor type must provide its StatePersistence level, If an Actor type doesn't specify a StatePersistence attribute, actor state is not replicated or written to disk.

Constructors

StatePersistenceAttribute(StatePersistence)

Initializes a new instance of the StatePersistenceAttribute class.

Properties

StatePersistence

Gets the enum representing type of state store to use for the actor.

Applies to