C# Class TastyDomainDriven.Bus.SqlLoggedBus

Inheritance: IBus
Afficher le fichier Open project: jaceenet/TastyDomainDriven

Méthodes publiques

Méthode 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

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

Method Details

Dispatch() public méthode

public Dispatch ( ICommand cmd ) : void
cmd ICommand
Résultat void

GetLogs() public méthode

public GetLogs ( System.DateTime from = null, System.DateTime to = null ) : IEnumerable
from System.DateTime
to System.DateTime
Résultat IEnumerable

Initialize() public méthode

Create the table structure
public Initialize ( ) : void
Résultat void

SqlLoggedBus() public méthode

public SqlLoggedBus ( IBus bus, string connection, string tablename = "commandlogs" ) : System
bus IBus
connection string
tablename string
Résultat System

ToJson() public abstract méthode

public abstract ToJson ( object cmd ) : string
cmd object
Résultat string