C# Class PersonRepository.Caching.CachingRepository

Inheritance: IPersonRepository
Mostra file Open project: jeremybytes/learning-dependency-injection Class Usage Examples

Private Properties

Property Type Description
InvalidateCache void
ValidateCache void

Public Methods

Method Description
AddPerson ( Person newPerson ) : void
CachingRepository ( IPersonRepository wrappedPersonRepository ) : Common.System
DeletePerson ( string lastName ) : void
GetPeople ( ) : IEnumerable
GetPerson ( string lastName ) : Person
UpdatePeople ( IEnumerable updatedPeople ) : void
UpdatePerson ( string lastName, Person updatedPerson ) : void

Private Methods

Method Description
InvalidateCache ( ) : void
ValidateCache ( ) : void

Method Details

AddPerson() public method

public AddPerson ( Person newPerson ) : void
newPerson Common.Person
return void

CachingRepository() public method

public CachingRepository ( IPersonRepository wrappedPersonRepository ) : Common.System
wrappedPersonRepository IPersonRepository
return Common.System

DeletePerson() public method

public DeletePerson ( string lastName ) : void
lastName string
return void

GetPeople() public method

public GetPeople ( ) : IEnumerable
return IEnumerable

GetPerson() public method

public GetPerson ( string lastName ) : Person
lastName string
return Common.Person

UpdatePeople() public method

public UpdatePeople ( IEnumerable updatedPeople ) : void
updatedPeople IEnumerable
return void

UpdatePerson() public method

public UpdatePerson ( string lastName, Person updatedPerson ) : void
lastName string
updatedPerson Common.Person
return void