Gets or sets the duration after which the message buffer expires.
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
You can set a duration between 1 minute and 10 minutes. This property indicates how long the message buffer idles before automatically deleting itself. You can reset the message buffer lifespan by requesting a message from the message buffer. For more information on configuring a message buffer, see How to: Configure an AppFabric Service Bus Message Buffer.
The message buffer checks every 30 seconds to see if there has been new activity to determine whether to extend its lifespan. If there has been recent activity, the lifespan of the message buffer is extended by the duration specified by the property from this checkpoint instead of from the time of the last activity. As a consequence, the message buffer can get a lifespan up to 30 seconds longer than the expected lifespan.