Edit

Share via


GrainState<T> Constructors

Definition

Overloads

GrainState<T>()

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

GrainState<T>(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>()

Source:
IGrainState.cs

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

public GrainState ();
Public Sub New ()

Applies to

GrainState<T>(T)

Source:
IGrainState.cs

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

public GrainState (T state);
new Orleans.GrainState<'T> : 'T -> Orleans.GrainState<'T>
Public Sub New (state As T)

Parameters

state
T

The initial value of the state.

Applies to

GrainState<T>(T, String)

Source:
IGrainState.cs

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

public GrainState (T state, string eTag);
new Orleans.GrainState<'T> : 'T * string -> Orleans.GrainState<'T>
Public Sub New (state As T, eTag As String)

Parameters

state
T

The initial value of the state.

eTag
String

The initial e-tag value that allows optimistic concurrency checks at the storage provider level.

Applies to