C# Class ApplicationService.ClientApplicationService

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

Public Methods

Method Description
ClientApplicationService ( IAggregateRepository clientRepository, IClientProjections clientProjections, IUnitOfWork unitOfWork ) : System
ClientApplicationService ( IAggregateRepository clientRepository, IUnitOfWork unitOfWork ) : System
Execute ( CancelLoyaltyCard command ) : void
Execute ( CorrectDateOfBirth command ) : void
Execute ( IssueLoyaltyCard command ) : void
Execute ( RegisterClient command ) : void
Execute ( ReportLoyaltyCardAsStolen command ) : void
Execute ( SetClientAsDeceased command ) : void

Private Methods

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

Method Details

ClientApplicationService() public method

public ClientApplicationService ( IAggregateRepository clientRepository, IClientProjections clientProjections, IUnitOfWork unitOfWork ) : System
clientRepository IAggregateRepository
clientProjections IClientProjections
unitOfWork IUnitOfWork
return System

ClientApplicationService() public method

public ClientApplicationService ( IAggregateRepository clientRepository, IUnitOfWork unitOfWork ) : System
clientRepository IAggregateRepository
unitOfWork IUnitOfWork
return System

Execute() public method

public Execute ( CancelLoyaltyCard command ) : void
command Domain.Client.Clients.Commands.CancelLoyaltyCard
return void

Execute() public method

public Execute ( CorrectDateOfBirth command ) : void
command Domain.Client.Clients.Commands.CorrectDateOfBirth
return void

Execute() public method

public Execute ( IssueLoyaltyCard command ) : void
command Domain.Client.Clients.Commands.IssueLoyaltyCard
return void

Execute() public method

public Execute ( RegisterClient command ) : void
command Domain.Client.Clients.Commands.RegisterClient
return void

Execute() public method

public Execute ( ReportLoyaltyCardAsStolen command ) : void
command Domain.Client.Clients.Commands.ReportLoyaltyCardAsStolen
return void

Execute() public method

public Execute ( SetClientAsDeceased command ) : void
command Domain.Client.Clients.Commands.SetClientAsDeceased
return void