示例#1
0
        public void WithdrawFunds(double amount)
        {
            Log.LogDebug("Entered", "Atm/WithdrawFunds");

            WithdrawFailedDueAmountLessThanZero withdrawFailedDueAmountLessThanZeroEvent = null;
            WithdrawValidated withdrawValidatedEvent = null;

            OnWithdrawFunds(amount, ref withdrawFailedDueAmountLessThanZeroEvent, ref withdrawValidatedEvent);
            if (withdrawFailedDueAmountLessThanZeroEvent != null)
            {
                Log.LogDebug("Pre", "Atm/WithdrawFunds/ApplyChange/WithdrawFailedDueAmountLessThanZero");
                ApplyChange(withdrawFailedDueAmountLessThanZeroEvent);
                Log.LogDebug("Post", "Atm/WithdrawFunds/ApplyChange/WithdrawFailedDueAmountLessThanZero");
            }
            if (withdrawValidatedEvent != null)
            {
                Log.LogDebug("Pre", "Atm/WithdrawFunds/ApplyChange/WithdrawValidated");
                ApplyChange(withdrawValidatedEvent);
                Log.LogDebug("Post", "Atm/WithdrawFunds/ApplyChange/WithdrawValidated");
            }

            Log.LogDebug("Pre", "Atm/WithdrawFunds/OnWithdrawFundsHandled");
            OnWithdrawFundsHandled(amount);
            Log.LogDebug("Post", "Atm/WithdrawFunds/OnWithdrawFundsHandled");

            Log.LogDebug("Exited", "Atm/WithdrawFunds");
        }
示例#2
0
 partial void OnWithdrawFunds(double amount, ref WithdrawFailedDueAmountLessThanZero withdrawFailedDueAmountLessThanZeroEvent, ref WithdrawValidated withdrawValidatedEvent);
示例#3
0
 partial void OnHandle(WithdrawValidated @event)
 {
     throw new NotImplementedException();
 }