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

Inheritance: IPayAsYouGoAccountRepository
ファイルを表示 Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method 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

Method Description
GetExpectedVersion ( int expectedVersion ) : int?
StreamNameFor ( System.Guid id ) : string

Method Details

Add() public method

public Add ( PayAsYouGoAccount payAsYouGoAccount ) : void
payAsYouGoAccount PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount
return void

FindBy() public method

public FindBy ( System.Guid id ) : PayAsYouGoAccount
id System.Guid
return PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount

PayAsYouGoAccountRepository() public method

public PayAsYouGoAccountRepository ( EventStore eventStore ) : System
eventStore EventStore
return System

PayAsYouGoAccountRepository() public method

public PayAsYouGoAccountRepository ( IEventStore eventStore ) : System
eventStore IEventStore
return System

Save() public method

public Save ( PayAsYouGoAccount payAsYouGoAccount ) : void
payAsYouGoAccount PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.PayAsYouGoAccount
return void

SaveSnapshot() public method

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