private OutgoingMessage Put(IncomingMessage putRequest) { Log.InfoFormat("Handling Put request"); var response = _factory.CreatePutResponse(); var incomingHeaders = new IncomingHeaders(putRequest); var outgoingHeaders = new OutgoingHeaders(response); var payload = _handler.HandlePut(incomingHeaders, outgoingHeaders, x => putRequest.GetPayload(x)); response.SetBody(new SerializerBodyWriter(payload)); Log.InfoFormat("Put request handled successfully"); return(response); }
public Message Put(Message putRequest) { object payload = _handler.HandlePut(x => _factory.DeserializeMessageWithPayload(putRequest, x)); return(_factory.CreatePutResponse(payload)); }