TransactionalState<TState>
class
Namespace: Orleans.Transactions
Provides a stateful facet which participates in Orleans transactions.
public class TransactionalState<TState> : ILifecycleParticipant<IGrainLifecycle>, ITransactionalState<TState> where TState : class, new()Constructors
TransactionalState<TState>(TransactionalStateConfiguration, IGrainContextAccessor, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)Initializes a new instance of theOrleans.Transactions.TransactionalStateclass.
Properties
CurrentTransactionIdGets the identifier of the current transaction.
Methods
Participate(IGrainLifecycle)Adds the provided observer as a participant in the lifecycle.PerformRead(Func<TState, TResult>)Performs a read operation and returns the result, without modifying the state.PerformUpdate(Func<TState, TResult>)Performs an update operation and returns the result.
