public static void DoDelete(DeleteRequest req) { MessageTransceiver <DeleteMessage <T> > .Broadcast(new DeleteMessage <T> { Where = req.Where }); MessageTransceiver <OnDeleteMessage <T> > .Broadcast(new OnDeleteMessage <T>()); }
public static void DoQuery(out IReadOnlyList <T> results) { MessageTransceiver <QueryMessage <T> > .Broadcast(new QueryMessage <T> { Query = _query }); results = _queryCache; }
public static void DoInsert(InsertRequest req) { MessageTransceiver <InsertMessage <T> > .Broadcast(new InsertMessage <T> { Data = req.Data }); MessageTransceiver <OnInsertMessage <T> > .Broadcast(new OnInsertMessage <T>()); }
public static void DoUpdate(UpdateRequest req) { MessageTransceiver <UpdateMessage <T> > .Broadcast(new UpdateMessage <T> { Where = req.Where, Update = req.Update }); MessageTransceiver <OnUpdateMessage <T> > .Broadcast(new OnUpdateMessage <T>()); }