Edit

Share via


GrainState<T> Class

Definition

Default implementation of IGrainState<T>.

C#
[System.Serializable]
public class GrainState<T> : Orleans.IGrainState
C#
[System.Serializable]
[Orleans.GenerateSerializer]
public sealed class GrainState<T> : Orleans.IGrainState<T>

Type Parameters

T

The type of application level payload.

Inheritance
GrainState<T>
Attributes
Implements

Constructors

GrainState<T>()

Initializes a new instance of the GrainState<T> class.

GrainState<T>(T, String)

Initializes a new instance of the GrainState<T> class.

GrainState<T>(T)

Initializes a new instance of the GrainState<T> class.

Fields

Properties

ETag

An e-tag that allows optimistic concurrency checks at the storage provider level.

RecordExists

Gets or sets a value indicating whether the record exists in storage.

State

Gets or sets the state.

Type

Type of the grain state

Explicit Interface Implementations

Applies to

Product Versions
.NET Orleans 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0