C# Класс TastyDomainDriven.Bus.SqlLoggedBus

Наследование: IBus
Показать файл Открыть проект

Открытые методы

Метод Описание
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