C# Class EventSourcing.Sample.BookBorrowAndReturn.BookService

Inheritance: IBookService
Afficher le fichier Open project: tangxuehua/eventsourcing

Méthodes publiques

Méthode Description
AddBookToLibrary ( System.Guid bookId, int count, System.Guid libraryId ) : void
BookService ( IContextManager contextManager ) : System
BorrowBook ( System.Guid bookId, System.Guid accountId, System.Guid libraryId, int count ) : void
CreateBook ( BookInfo bookInfo ) : Book
ReturnBook ( System.Guid bookId, System.Guid accountId, System.Guid libraryId, int count ) : void

Method Details

AddBookToLibrary() public méthode

public AddBookToLibrary ( System.Guid bookId, int count, System.Guid libraryId ) : void
bookId System.Guid
count int
libraryId System.Guid
Résultat void

BookService() public méthode

public BookService ( IContextManager contextManager ) : System
contextManager IContextManager
Résultat System

BorrowBook() public méthode

public BorrowBook ( System.Guid bookId, System.Guid accountId, System.Guid libraryId, int count ) : void
bookId System.Guid
accountId System.Guid
libraryId System.Guid
count int
Résultat void

CreateBook() public méthode

public CreateBook ( BookInfo bookInfo ) : Book
bookInfo BookInfo
Résultat Book

ReturnBook() public méthode

public ReturnBook ( System.Guid bookId, System.Guid accountId, System.Guid libraryId, int count ) : void
bookId System.Guid
accountId System.Guid
libraryId System.Guid
count int
Résultat void