Skip to content

Configuration "MessageHandlerConfiguration"

joefeser edited this page Mar 3, 2013 · 5 revisions

///

/// Gets or sets the default message time to live for a subscription. (in seconds) /// public int DefaultMessageTimeToLive { get { return defaultMessageTimeToLive; } set { defaultMessageTimeToLive = value; defaultMessageTimeToLiveSet = true; } }

///

/// Send the letter to the default dead letter queue after the max retries. /// public bool DeadLetterAfterMaxRetries { get; set; }

///

/// Gets or sets a value that indicates whether the batched operations are enabled. /// public bool EnableBatchedOperations { get; set; }

///

/// Gets or sets the value that indicates if a subscription has dead letter support when a message expires. /// public bool EnableDeadLetteringOnMessageExpiration { get; set; }

///

/// Gets or sets the lock duration time span for the subscription. (in seconds) /// /// 30 seconds to 5 minutes??? Looking for more info. public int LockDuration { get { return lockDuration; } set { lockDuration = value; lockDurationSet = true; } }

///

/// Gets or sets the number of maximum deliveries. /// public int MaxRetries { get { return maxDeliveryCount; } set { Guard.ArgumentNotZeroOrNegativeValue(value, "value"); maxDeliveryCount = value; maxDeliveryCountSet = true; } }

///

/// If we threw an error, pause the provided milliseconds before calling the handler again /// /// /// The goal is to allow the application to have basic retry throttling logic. /// public int PauseTimeIfErrorWasThrown { get; set; }

//http://msdn.microsoft.com/en-us/library/hh144031.aspx

///

/// Gets or sets the number of messages that the message receiver can simultaneously request. /// /// This is a property of the SubscriptionClient public int PrefetchCount { get { return prefetchCount; } set { Guard.ArgumentNotZeroOrNegativeValue(value, "value"); prefetchCount = value; prefetchCountSet = true; } }

///

/// Enumerates the values for the receive mode. /// /// /// PeekLock /// Specifies the PeekLock receive mode. /// This mode receives the message but keeps it peek-locked until the receiver abandons the message. /// /// ReceiveAndDelete /// Specifies the ReceiveAndDelete receive mode. ///This mode deletes the message after it is received. /// public ReceiveMode ReceiveMode { get; set; }

///

/// Is the message handler a singleton or instance member? /// public bool Singleton { get; set; }

Clone this wiki locally