HandleZeroBalanceStateDepositMessage(BankAccountStateMachineGrainState state) { return(async _ => { var result = await Handler.Deposit(state, _); return (BankAccountStateMachineGrainState)result; }); }
HandleActiveStateWithdrawMessage(BankAccountStateMachineGrainState state) { return(async _ => { var result = await Handler.Withdraw(state, _); return (BankAccountStateMachineGrainState)result; }); }
public static Func <Task <BankAccountStateMachineGrainState> > HandleZeroBalanceStateCloseMessage( BankAccountStateMachineGrainState state) { return(async() => { var result = await Handler.Close(state); return (BankAccountStateMachineGrainState)result; }); }