C# Class PPPDDDChap23.EventSourcing.Application.Infrastructure.PayAsYouGoAccountRepository

Inheritance: IPayAsYouGoAccountRepository
Afficher le fichier Open project: elbandit/PPPDDD Class Usage Examples

Méthodes publiques

Méthode Description
Add ( PayAsYouGoAccount payAsYouGoAccount ) : void
FindBy ( System.Guid id ) : PayAsYouGoAccount
PayAsYouGoAccountRepository ( EventStore eventStore ) : System
PayAsYouGoAccountRepository ( IEventStore eventStore ) : System
Save ( PayAsYouGoAccount payAsYouGoAccount ) : void
SaveSnapshot ( PayAsYouGoAccountSnapshot snapshot, PayAsYouGoAccount payAsYouGoAccount ) : void

Private Methods

Méthode Description
GetExpectedVersion ( int expectedVersion ) : int?
StreamNameFor ( System.Guid id ) : string

Method Details

Add() public méthode

public Add ( PayAsYouGoAccount payAsYouGoAccount ) : void
payAsYouGoAccount PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount
Résultat void

FindBy() public méthode

public FindBy ( System.Guid id ) : PayAsYouGoAccount
id System.Guid
Résultat PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount

PayAsYouGoAccountRepository() public méthode

public PayAsYouGoAccountRepository ( EventStore eventStore ) : System
eventStore EventStore
Résultat System

PayAsYouGoAccountRepository() public méthode

public PayAsYouGoAccountRepository ( IEventStore eventStore ) : System
eventStore IEventStore
Résultat System

Save() public méthode

public Save ( PayAsYouGoAccount payAsYouGoAccount ) : void
payAsYouGoAccount PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount
Résultat void

SaveSnapshot() public méthode

public SaveSnapshot ( PayAsYouGoAccountSnapshot snapshot, PayAsYouGoAccount payAsYouGoAccount ) : void
snapshot PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccountSnapshot
payAsYouGoAccount PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount
Résultat void