Exemple #1
0
            HandleZeroBalanceStateDepositMessage(BankAccountStateMachineGrainState state)
            {
                return(async _ =>
                {
                    var result = await Handler.Deposit(state, _);

                    return (BankAccountStateMachineGrainState)result;
                });
            }
Exemple #2
0
            HandleActiveStateWithdrawMessage(BankAccountStateMachineGrainState state)
            {
                return(async _ =>
                {
                    var result = await Handler.Withdraw(state, _);

                    return (BankAccountStateMachineGrainState)result;
                });
            }
Exemple #3
0
            public static Func <Task <BankAccountStateMachineGrainState> > HandleZeroBalanceStateCloseMessage(
                BankAccountStateMachineGrainState state)
            {
                return(async() =>
                {
                    var result = await Handler.Close(state);

                    return (BankAccountStateMachineGrainState)result;
                });
            }