C# 클래스 TastyDomainDriven.Bus.SqlLoggedBus

상속: IBus
파일 보기 프로젝트 열기: jaceenet/TastyDomainDriven

공개 메소드들

메소드 설명
Dispatch ( ICommand cmd ) : void
GetLogs ( System.DateTime from = null, System.DateTime to = null ) : IEnumerable
Initialize ( ) : void

Create the table structure

SqlLoggedBus ( IBus bus, string connection, string tablename = "commandlogs" ) : System
ToJson ( object cmd ) : string

비공개 메소드들

메소드 설명
Log ( string name, string json, byte data, bool success ) : void
SerializeObject ( ICommand cmd ) : byte[]

메소드 상세

Dispatch() 공개 메소드

public Dispatch ( ICommand cmd ) : void
cmd ICommand
리턴 void

GetLogs() 공개 메소드

public GetLogs ( System.DateTime from = null, System.DateTime to = null ) : IEnumerable
from System.DateTime
to System.DateTime
리턴 IEnumerable

Initialize() 공개 메소드

Create the table structure
public Initialize ( ) : void
리턴 void

SqlLoggedBus() 공개 메소드

public SqlLoggedBus ( IBus bus, string connection, string tablename = "commandlogs" ) : System
bus IBus
connection string
tablename string
리턴 System

ToJson() 공개 추상적인 메소드

public abstract ToJson ( object cmd ) : string
cmd object
리턴 string