ITransactionalState<TState> Interface

Definition

State that respects Orleans transaction semantics, and allows read/write locking

public interface ITransactionalState<TState> where TState : class, new()
type ITransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> = interface
Public Interface ITransactionalState(Of TState)

Type Parameters

TState

The type of the state

Derived

Methods

PerformRead<TResult>(Func<TState,TResult>)

Performs a read operation and returns the result, without modifying the state.

PerformUpdate<TResult>(Func<TState,TResult>)

Performs an update operation and returns the result.

Extension Methods

PerformUpdate<TState>(ITransactionalState<TState>, Action<TState>)

Performs an update operation, without returning any result.

Applies to