/// <summary>
        /// Send a message to a particular recipient.
        /// </summary>
        public void SendMessage(NotificationMessageLive message)
        {
            if (recipients.ContainsKey(message.RecipientName))
            {
                NotificationRecipientLive client = recipients[message.RecipientName];

                client.EnqueueMessage(message);
            }
        }
        /// <summary>
        /// Called by a individual recipient to wait and receive a message.
        /// </summary>
        /// <returns>The message content</returns>
        public string GetMessage(string userName)
        {
            string messageContent = string.Empty;

            if (recipients.ContainsKey(userName))
            {
                NotificationRecipientLive client = recipients[userName];

                messageContent = client.DequeueMessage().MessageContent + "this is from bay notification" + System.DateTime.Now.ToString();
            }

            return(messageContent);
        }
 /// <summary>
 /// Join a user to the recipient list.
 /// </summary>
 public void Join(string userName)
 {
     recipients[userName] = new NotificationRecipientLive();
 }