Skip to content

GrainState<T> Constructors

Default implementation of Orleans.IGrainState.

GrainState<T>(T)

View source
public GrainState(T state)
Initializes a new instance of the Orleans.GrainState class.

Parameters

stateT
The initial value of the state.

GrainState<T>(T, string)

View source
public GrainState(T state, string eTag)
Initializes a new instance of the Orleans.GrainState class.

Parameters

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