I'm using the Managed Library to do some tests and I've found that I cannot change the message TTL because the ExpirationTime property is protected internal.
I inherited a class from CloudQueueMessage and added a method to change the ExpirationTime, but the queue is ignoring the property and setting again to 7 days when I retrieve the message.
What am I doing wrong?
Juan Manuel Servera
mi blog: http://jmservera.wordpress.com
Únete al grupo de WP7 en LinkedIn
MCPD WP7 Developer - MCTS Sharepoint 2010 Application Development
Hi Juan - thanks for the question.
You can use the following overloads for CloudQueue.AddMessage() which allow you to specify a timeToLive. The first one additionally allows you to specify an initial invisibility delay.
AddMessage(CloudQueueMessage message, Nullable<TimeSpan> timeToLive, Nullable<TimeSpan> initialVisibilityDelay):
AddMessage(CloudQueueMessage message, TimeSpan timeToLive):
Let me know if you have any further questions on this!
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?