public TransactionGrain( [TransactionalState("Info")] ITransactionalState <Info> info) { this.info = info ?? throw new ArgumentNullException(nameof(info)); }
public AccountGrain( [TransactionalState("balance")] ITransactionalState <Balance> balance) { _balance = balance ?? throw new ArgumentNullException(nameof(balance)); }
public BallGrain( [TransactionalState("attr")] ITransactionalState <BallAttr> attr) { this.attr = attr ?? throw new ArgumentNullException(nameof(attr)); }
public SingleStateTransactionalGrain( [TransactionalState(TransactionTestConstants.TransactionStore)] ITransactionalState <GrainData> data) { this.data = data; }
public TotalHashIndexPartitionedPerKeyBucketImplTransactional( [TransactionalState(IndexingConstants.BucketStateName, IndexingConstants.INDEXING_STORAGE_PROVIDER_NAME)] ITransactionalState <HashIndexBucketState <K, V> > transactionalState) : base(transactionalState) { }
/// <summary> /// Performs an update operation, without returning any result. /// </summary> /// <param name="transactionalState">Transactional state to perform update upon.</param> /// <param name="updateAction">An action that updates the state.</param> public static Task PerformUpdate <TState>(this ITransactionalState <TState> transactionalState, Action <TState> updateAction) where TState : class, new() { return(transactionalState.PerformUpdate <bool>(state => { updateAction(state); return true; })); }
public AccountGrain(ILogger <AccountGrain> logger, [TransactionalState("balance")] ITransactionalState <Balance> balance) : base(logger) { this.balance = balance ?? throw new ArgumentNullException(nameof(balance)); }
public AccountGrain( [TransactionalState("balance")] ITransactionalState <Balance> balance) =>
private protected HashIndexPartitionedPerKeyBucket(ITransactionalState <HashIndexBucketState <K, V> > transactionalState) : base(transactionalState) { }
public AccountGrain([TransactionalState("balance", StorageProviders.DefaultProviderName)] ITransactionalState <TBalance> balance) { _balance = balance ?? throw new ArgumentNullException(nameof(balance)); }
public Grain2([TransactionalState("grain2")] ITransactionalState <Grain2State> state) { _state = state; }