Skip to content

Configuration "MessageHandlerConfiguration"

joefeser edited this page Mar 3, 2013 · 5 revisions
/// <summary>
/// Gets or sets the default message time to live for a subscription. (in seconds)
/// </summary>
public int DefaultMessageTimeToLive {
    get {
        return defaultMessageTimeToLive;
    }
    set {
        defaultMessageTimeToLive = value;
        defaultMessageTimeToLiveSet = true;
    }
}
/// <summary>
/// Send the letter to the default dead letter queue after the max retries.
/// </summary>
public bool DeadLetterAfterMaxRetries {
    get;
    set;
}
/// <summary>
/// Gets or sets a value that indicates whether the batched operations are enabled.
/// </summary>
public bool EnableBatchedOperations {
    get;
    set;
}
/// <summary>
/// Gets or sets the value that indicates if a subscription has dead letter support when a message expires.
/// </summary>
public bool EnableDeadLetteringOnMessageExpiration {
    get;
    set;
}
/// <summary>
/// Gets or sets the lock duration time span for the subscription. (in seconds)
/// </summary>
/// <remarks>30 seconds to 5 minutes??? Looking for more info.</remarks>
public int LockDuration {
    get {
        return lockDuration;
    }
    set {
        lockDuration = value;
        lockDurationSet = true;
    }
}
/// <summary>
/// Gets or sets the number of maximum deliveries.
/// </summary>
public int MaxRetries {
    get {
        return maxDeliveryCount;
    }
    set {
        Guard.ArgumentNotZeroOrNegativeValue(value, "value");
        maxDeliveryCount = value;
        maxDeliveryCountSet = true;
    }
}
/// <summary>
/// If we threw an error, pause the provided milliseconds before calling the handler again
/// </summary>
/// <remarks>
/// The goal is to allow the application to have basic retry throttling logic.
/// </remarks>
public int PauseTimeIfErrorWasThrown {
    get;
    set;
}
//http://msdn.microsoft.com/en-us/library/hh144031.aspx

/// <summary>
/// Gets or sets the number of messages that the message receiver can simultaneously request.
/// </summary>
/// <remarks>This is a property of the SubscriptionClient</remarks>
public int PrefetchCount {
    get {
        return prefetchCount;
    }
    set {
        Guard.ArgumentNotZeroOrNegativeValue(value, "value");
        prefetchCount = value;
        prefetchCountSet = true;
    }
}
/// <summary>
/// Enumerates the values for the receive mode.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
public ReceiveMode ReceiveMode {
    get;
    set;
}
/// <summary>
/// Is the message handler a singleton or instance member?
/// </summary>
public bool Singleton {
    get;
    set;
}

Clone this wiki locally