Esempio n. 1
0
            private void ProcessMessages(bool hasMessages, D.Observer member)
            {
                try
                {
                    List <Message> result;
                    if (hasMessages)
                    {
                        result = member.Messages.Select(m => ServiceEntityMapper.Map <D.Message, Message>(m)).ToList();
                    }
                    else
                    {
                        result = new List <Message>();
                    }

                    this.ReturnResult(result);
                }
                catch (Exception ex)
                {
                    this.ThrowException(ex);
                }
            }
Esempio n. 2
0
 private static bool MatchObserverName(Observer observer, string name)
 {
     return(string.Equals(observer.Name, name, StringComparison.OrdinalIgnoreCase));
 }