Beispiel #1
0
        public NotificationProducer(NotificationSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            m_settings = settings;
        }
 public NotificationProducer(NotificationSettings settings)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     
     m_settings = settings;
 }
Beispiel #3
0
 /// <summary>
 /// TimelyAndReliable option set and message is not requesting timely and reliable then false.
 /// Always option will return true.
 /// Not other options exist.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="settings"></param>
 /// <returns></returns>
 /// <remarks>
 /// Remember TimelyAndReliable option is the default if not configured.  This means a edge
 /// client must request timely and reliable delivery.
 /// </remarks>
 public static bool ShouldDeliverFailedStatus(this MessageEnvelope message, NotificationSettings settings)
 {
     if (settings.AutoDsnFailureOption == NotificationSettings.AutoDsnOption.TimelyAndReliable &&
         !message.Message.IsTimelyAndReliable())
     {
         return(false);
     }
     return(true);
 }