StatePersistenceAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET