C# Class TastyDomainDriven.Bus.SqlLoggedBus

Inheritance: IBus
Mostrar archivo Open project: jaceenet/TastyDomainDriven

Public Methods

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

Private Methods

Method Description
Log ( string name, string json, byte data, bool success ) : void
SerializeObject ( ICommand cmd ) : byte[]

Method Details

Dispatch() public method

public Dispatch ( ICommand cmd ) : void
cmd ICommand
return void

GetLogs() public method

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

Initialize() public method

Create the table structure
public Initialize ( ) : void
return void

SqlLoggedBus() public method

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

ToJson() public abstract method

public abstract ToJson ( object cmd ) : string
cmd object
return string