예제 #1
0
        public Guid Add(Message message)
        {
            message.ID = Guid.NewGuid();

            _messagesCache.Add(message);

            return message.ID;
        }
예제 #2
0
 /// <summary>
 /// Updates an existing Message
 /// </summary>
 /// <param name="message"></param>
 public void Update(Message message)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 /// <summary>
 /// Removes an existing Message from the repository
 /// </summary>
 /// <param name="message"></param>
 public void Remove(Message message)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 /// <summary>
 /// Adds a message
 /// </summary>
 /// <param name="message"></param>
 /// <returns></returns>
 public Guid Add(Message message)
 {
     throw new NotImplementedException();
 }
예제 #5
0
        public void Remove(Message message)
        {
            Message msg = _messagesCache.First<Message>(m => m.ID == message.ID);

            _messagesCache.Remove(msg);
        }