private OutgoingMessage Create(IncomingMessage createRequest)
        {
            Log.InfoFormat("Handling Create request");
            var response        = _factory.CreateCreateResponse();
            var incomingHeaders = new IncomingHeaders(createRequest);
            var outgoingHeaders = new OutgoingHeaders(response);
            var reference       = _handler.HandleCreate(incomingHeaders, outgoingHeaders, x => createRequest.GetPayload(x));

            response.SetBody(new CreateResponseBodyWriter(reference));
            Log.InfoFormat("Create request handled successfully");
            return(response);
        }
Exemple #2
0
        public Message Create(Message createRequest)
        {
            EndpointAddress address = _handler.HandleCreate(x => _factory.DeserializeMessageWithPayload(createRequest, x));

            return(_factory.CreateCreateResponse(address));
        }