private OutgoingMessage Get(IncomingMessage getRequest) { Log.InfoFormat("Handling Get request"); var response = _factory.CreateGetResponse(); var incomingHeaders = new IncomingHeaders(getRequest); var outgoingHeaders = new OutgoingHeaders(response); var payload = _handler.HandleGet(incomingHeaders, outgoingHeaders); response.SetBody(new SerializerBodyWriter(payload)); Log.InfoFormat("Get request handled successfully"); return(response); }
public Message Get(Message getRequest) { object payload = _handler.HandleGet(); return(_factory.CreateGetResponse(payload)); }