C# Class EventSourcing.Sample.BookBorrowAndReturn.BookService

Inheritance: IBookService
显示文件 Open project: tangxuehua/eventsourcing

Public Methods

Method 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 method

public AddBookToLibrary ( System.Guid bookId, int count, System.Guid libraryId ) : void
bookId System.Guid
count int
libraryId System.Guid
return void

BookService() public method

public BookService ( IContextManager contextManager ) : System
contextManager IContextManager
return System

BorrowBook() public method

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
return void

CreateBook() public method

public CreateBook ( BookInfo bookInfo ) : Book
bookInfo BookInfo
return Book

ReturnBook() public method

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
return void