TransactionalState<TState> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stateful facet that respects Orleans transaction semantics
public class TransactionalState<TState> : Orleans.ILifecycleParticipant<Orleans.Runtime.IGrainLifecycle>, Orleans.Transactions.Abstractions.ITransactionalState<TState> where TState : class, new()
type TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> = class
interface ITransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))>
interface ILifecycleParticipant<IGrainLifecycle>
Public Class TransactionalState(Of TState)
Implements ILifecycleParticipant(Of IGrainLifecycle), ITransactionalState(Of TState)
Type Parameters
- TState
- Inheritance
-
TransactionalState<TState>
- Implements
Constructors
Properties
CurrentTransactionId |
Methods
Participate(IGrainLifecycle) | |
PerformRead<TResult>(Func<TState,TResult>) |
Read the current 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. |