예제 #1
0
        public static void DoDelete(DeleteRequest req)
        {
            MessageTransceiver <DeleteMessage <T> > .Broadcast(new DeleteMessage <T>
            {
                Where = req.Where
            });

            MessageTransceiver <OnDeleteMessage <T> > .Broadcast(new OnDeleteMessage <T>());
        }
예제 #2
0
        public static void DoQuery(out IReadOnlyList <T> results)
        {
            MessageTransceiver <QueryMessage <T> > .Broadcast(new QueryMessage <T>
            {
                Query = _query
            });

            results = _queryCache;
        }
예제 #3
0
        public static void DoInsert(InsertRequest req)
        {
            MessageTransceiver <InsertMessage <T> > .Broadcast(new InsertMessage <T>
            {
                Data = req.Data
            });

            MessageTransceiver <OnInsertMessage <T> > .Broadcast(new OnInsertMessage <T>());
        }
예제 #4
0
        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>());
        }