Düzenle

Aracılığıyla paylaş


TransactionalState<TState> Class

Definition

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

TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)
TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILoggerFactory)
TransactionalState<TState>(TransactionalStateConfiguration, IGrainContextAccessor, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)

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.

Applies to