ToAllEventsForwardFeed() публичный статический Метод

public static ToAllEventsForwardFeed ( ClientMessage msg, Uri requestedUrl, EmbedLevel embedContent ) : EventStore.Transport.Http.Atom.FeedElement
msg ClientMessage
requestedUrl System.Uri
embedContent EmbedLevel
Результат EventStore.Transport.Http.Atom.FeedElement
Пример #1
0
            public static string ReadAllEventsForwardCompleted(HttpEntity entity, Message message)
            {
                Debug.Assert(message.GetType() == typeof(ClientMessage.ReadAllEventsForwardCompleted));

                var completed = message as ClientMessage.ReadAllEventsForwardCompleted;

                return(completed != null
                    ? entity.ResponseCodec.To(Convert.ToAllEventsForwardFeed(completed.Result, Convert.ToEntry, entity.UserHostName))
                    : string.Empty);
            }
Пример #2
0
        public static string ReadAllEventsForwardCompleted(HttpResponseFormatterArgs entity, Message message, EmbedLevel embed)
        {
            var msg = message as ClientMessage.ReadAllEventsForwardCompleted;

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

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