ToAllEventsBackwardFeed() public static method

public static ToAllEventsBackwardFeed ( ClientMessage msg, Uri requestedUrl, EmbedLevel embedContent ) : EventStore.Transport.Http.Atom.FeedElement
msg ClientMessage
requestedUrl System.Uri
embedContent EmbedLevel
return EventStore.Transport.Http.Atom.FeedElement
Beispiel #1
0
            public static string ReadAllEventsBackwardCompleted(HttpEntity entity, Message message)
            {
                Debug.Assert(message.GetType() == typeof(ClientMessage.ReadAllEventsBackwardCompleted));

                var completed = message as ClientMessage.ReadAllEventsBackwardCompleted;

                return(completed != null
                    ? entity.ResponseCodec.To(Convert.ToAllEventsBackwardFeed(completed.Result, Convert.ToEntry, entity.UserHostName))
                    : string.Empty);
            }
Beispiel #2
0
        public static string ReadAllEventsBackwardCompleted(HttpResponseFormatterArgs entity, Message message, EmbedLevel embed)
        {
            var msg = message as ClientMessage.ReadAllEventsBackwardCompleted;

            if (msg == null || msg.Result != ReadAllResult.Success)
            {
                return(String.Empty);
            }

            return(entity.ResponseCodec.To(Convert.ToAllEventsBackwardFeed(msg, entity.RequestedUrl, embed)));
        }