/// <summary>
 /// If the mapping exists, calls BaseRemove on it.
 /// </summary>
 /// <param name="mapping"></param>
 public void Remove(MessageEndpointMapping mapping)
 {
     if (BaseIndexOf(mapping) >= 0)
     {
         BaseRemove(mapping.Message);
     }
 }
        /// <summary>
        /// Creates a new MessageEndpointMapping, setting its Message property to the given name.
        /// </summary>
        /// <param name="elementName"></param>
        /// <returns></returns>
        protected override ConfigurationElement CreateNewElement(string elementName)
        {
            var result = new MessageEndpointMapping();

            result.Message = elementName;

            return(result);
        }
 /// <summary>
 /// Calls BaseAdd.
 /// </summary>
 /// <param name="mapping"></param>
 public void Add(MessageEndpointMapping mapping)
 {
     BaseAdd(mapping);
 }
 /// <summary>
 /// Calls BaseIndexOf on the given mapping.
 /// </summary>
 /// <param name="mapping"></param>
 /// <returns></returns>
 public int IndexOf(MessageEndpointMapping mapping)
 {
     return(BaseIndexOf(mapping));
 }
        /// <summary>
        /// Creates a new MessageEndpointMapping, setting its Message property to the given name.
        /// </summary>
        /// <param name="elementName"></param>
        /// <returns></returns>
        protected override ConfigurationElement CreateNewElement(string elementName)
        {
            var result = new MessageEndpointMapping();
            result.Message = elementName;

            return result;
        }
 /// <summary>
 /// If the mapping exists, calls BaseRemove on it.
 /// </summary>
 /// <param name="mapping"></param>
 public void Remove(MessageEndpointMapping mapping)
 {
     if (BaseIndexOf(mapping) >= 0)
         BaseRemove(mapping.Message);
 }
 /// <summary>
 /// Calls BaseIndexOf on the given mapping.
 /// </summary>
 /// <param name="mapping"></param>
 /// <returns></returns>
 public int IndexOf(MessageEndpointMapping mapping)
 {
     return BaseIndexOf(mapping);
 }
 /// <summary>
 /// Calls BaseAdd.
 /// </summary>
 /// <param name="mapping"></param>
 public void Add(MessageEndpointMapping mapping)
 {
     BaseAdd(mapping);
 }