Ejemplo n.º 1
0
 /// <summary>
 /// Creates a web request to get Queue service stats.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the Queue service endpoint.</param>
 /// <param name="builder">A <see cref="UriQueryBuilder"/> object specifying additional parameters to add to the URI query string.</param>
 /// <param name="timeout">The server timeout interval, in seconds.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest GetServiceStats(Uri uri, UriQueryBuilder builder, int?timeout, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.GetServiceStats(uri, builder, timeout, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a web request to get messages from a queue.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the queue.</param>
 /// <param name="timeout">An integer specifying the server timeout interval.</param>
 /// <param name="numberOfMessages">An integer specifying the number of messages to get.</param>
 /// <param name="visibilityTimeout">A <see cref="TimeSpan"/> value specifying the visibility timeout.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest GetMessages(Uri uri, int?timeout, int numberOfMessages, TimeSpan?visibilityTimeout, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.GetMessages(uri, timeout, numberOfMessages, visibilityTimeout, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs a web request to peek messages from a queue.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the queue.</param>
 /// <param name="timeout">An integer specifying the server timeout interval.</param>
 /// <param name="numberOfMessages">An integer specifying the number of messages to peek.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest PeekMessages(Uri uri, int?timeout, int numberOfMessages, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.PeekMessages(uri, timeout, numberOfMessages, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs a web request to update a message.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the message to update.</param>
 /// <param name="timeout">The server timeout interval, in seconds.</param>
 /// <param name="popReceipt">A string specifying the pop receipt of the message.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest DeleteMessage(Uri uri, int?timeout, string popReceipt, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.DeleteMessage(uri, timeout, popReceipt, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructs a web request to update a message.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the message to update.</param>
 /// <param name="timeout">The server timeout interval, in seconds.</param>
 /// <param name="popReceipt">A string specifying the pop receipt of the message.</param>
 /// <param name="visibilityTimeoutInSeconds">The length of time during which the message will be invisible, in seconds.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest UpdateMessage(Uri uri, int?timeout, string popReceipt, int visibilityTimeoutInSeconds, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.UpdateMessage(uri, timeout, popReceipt, visibilityTimeoutInSeconds, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructs a web request to add a message for a queue.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the queue.</param>
 /// <param name="timeout">An integer specifying the server timeout interval.</param>
 /// <param name="timeToLiveInSeconds">The message time-to-live, in seconds.</param>
 /// <param name="visibilityTimeoutInSeconds">The length of time during which the message will be invisible, in seconds.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest AddMessage(Uri uri, int?timeout, int?timeToLiveInSeconds, int?visibilityTimeoutInSeconds, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.AddMessage(uri, timeout, timeToLiveInSeconds, visibilityTimeoutInSeconds, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Constructs a web request to set the ACL for a queue.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the queue.</param>
 /// <param name="timeout">An integer specifying the server timeout interval.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest SetAcl(Uri uri, int?timeout, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.SetAcl(uri, timeout, true /* useVersionHeader */, operationContext));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Constructs a web request to return a listing of all queues in this storage account.
 /// </summary>
 /// <param name="uri">A <see cref="System.Uri"/> specifying the Queue service endpoint.</param>
 /// <param name="timeout">An integer specifying the server timeout interval.</param>
 /// <param name="listingContext">A <see cref="ListingContext"/> object.</param>
 /// <param name="detailsIncluded">A <see cref="QueueListingDetails"/> enumeration value that indicates whether to return queue metadata with the listing.</param>
 /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
 /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns>
 public static HttpWebRequest List(Uri uri, int?timeout, ListingContext listingContext, QueueListingDetails detailsIncluded, OperationContext operationContext)
 {
     return(QueueHttpWebRequestFactory.List(uri, timeout, listingContext, detailsIncluded, true /* useVersionHeader */, operationContext));
 }