Redigera

Dela via


IPersistentState<TState> Interface

Definition

Provides access to grain state with functionality to save, clear, and refresh the state.

public interface IPersistentState<TState> : Orleans.Core.IStorage<TState> where TState : new()
public interface IPersistentState<TState> : Orleans.Core.IStorage<TState>
type IPersistentState<'State (requires 'State : (new : unit -> 'State))> = interface
    interface IStorage<'State (requires 'State : (new : unit -> 'State))>
type IPersistentState<'State> = interface
    interface IStorage<'State>
    interface IStorage
Public Interface IPersistentState(Of TState)
Implements IStorage(Of TState)

Type Parameters

TState

The underlying state type.

Implements

Properties

Etag

Gets the ETag.

(Inherited from IStorage)
RecordExists

Gets a value indicating whether the record already exists.

(Inherited from IStorage)
State

Gets or sets the state.

(Inherited from IStorage<TState>)

Methods

ClearStateAsync()

Clears the grain state.

(Inherited from IStorage)
ReadStateAsync()

Reads grain state from storage.

(Inherited from IStorage)
WriteStateAsync()

Writes grain state to storage.

(Inherited from IStorage)

Applies to

See also