C# Class ApplicationService.AccountApplicationService

Inheritance: IAccountApplicationService
Show file Open project: AdrianFreemantle/DDD Class Usage Examples

Public Methods

Method Description
AccountApplicationService ( IAccountRepository accountRepository, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
AccountApplicationService ( IAggregateRepository accountRepository, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
AccountApplicationService ( IAggregateRepository accountRepository, IAccountProjections accountProjections, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
Execute ( CancelAccount command ) : void
Execute ( OpenAccount command ) : void
Execute ( RegisterMissedPayment command ) : void
Execute ( RegisterSuccessfullPayment command ) : void
When ( ClientPassedAway @event ) : void

Private Methods

Method Description
HandleException ( Exception ex ) : void
SubsribeToEvents ( ) : void

Method Details

AccountApplicationService() public method

public AccountApplicationService ( IAccountRepository accountRepository, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
accountRepository IAccountRepository
accountNumberService IAccountNumberService
unitOfWork IUnitOfWork
return System

AccountApplicationService() public method

public AccountApplicationService ( IAggregateRepository accountRepository, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
accountRepository IAggregateRepository
accountNumberService IAccountNumberService
unitOfWork IUnitOfWork
return System

AccountApplicationService() public method

public AccountApplicationService ( IAggregateRepository accountRepository, IAccountProjections accountProjections, IAccountNumberService accountNumberService, IUnitOfWork unitOfWork ) : System
accountRepository IAggregateRepository
accountProjections IAccountProjections
accountNumberService IAccountNumberService
unitOfWork IUnitOfWork
return System

Execute() public method

public Execute ( CancelAccount command ) : void
command Domain.Client.Accounts.Commands.CancelAccount
return void

Execute() public method

public Execute ( OpenAccount command ) : void
command Domain.Client.Accounts.Commands.OpenAccount
return void

Execute() public method

public Execute ( RegisterMissedPayment command ) : void
command Domain.Client.Accounts.Commands.RegisterMissedPayment
return void

Execute() public method

public Execute ( RegisterSuccessfullPayment command ) : void
command Domain.Client.Accounts.Commands.RegisterSuccessfullPayment
return void

When() public method

public When ( ClientPassedAway @event ) : void
@event Domain.Client.Clients.Events.ClientPassedAway
return void