Table of Contents

Class QueueHttpResponseParsers

Namespace
Microsoft.WindowsAzure.Storage.Queue.Protocol
Assembly
Microsoft.WindowsAzure.Storage.dll

Provides a set of methods for parsing a response containing queue data from the Queue service.

public static class QueueHttpResponseParsers
Inheritance
QueueHttpResponseParsers
Inherited Members

Methods

GetApproximateMessageCount(HttpWebResponse)

Gets the approximate message count for the queue.

public static string GetApproximateMessageCount(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

string

The approximate count for the queue.

GetMetadata(HttpWebResponse)

Gets the user-defined metadata.

public static IDictionary<string, string> GetMetadata(HttpWebResponse response)

Parameters

response HttpWebResponse

The response from server.

Returns

IDictionary<string, string>

An object of type IDictionary containing the metadata.

GetNextVisibleTime(HttpWebResponse)

Extracts the next visibility time from a web response header.

public static DateTime GetNextVisibleTime(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

DateTime

The time of next visibility stored in the header of the response.

GetPopReceipt(HttpWebResponse)

Extracts the pop receipt from a web response header.

public static string GetPopReceipt(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

string

The pop receipt stored in the header of the response.

GetRequestId(HttpWebResponse)

Gets the request ID from the response.

public static string GetRequestId(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

string

A unique value associated with the request.

ReadServiceProperties(Stream)

Reads service properties from a stream.

public static ServiceProperties ReadServiceProperties(Stream inputStream)

Parameters

inputStream Stream

The stream from which to read the service properties.

Returns

ServiceProperties

The service properties stored in the stream.

ReadServiceStats(Stream)

Reads service stats from a stream.

public static ServiceStats ReadServiceStats(Stream inputStream)

Parameters

inputStream Stream

The stream from which to read the service stats.

Returns

ServiceStats

The service stats stored in the stream.

ReadSharedAccessIdentifiers(Stream, QueuePermissions)

Reads the share access policies from a stream in XML.

public static void ReadSharedAccessIdentifiers(Stream inputStream, QueuePermissions permissions)

Parameters

inputStream Stream

The stream of XML policies.

permissions QueuePermissions

The permissions object to which the policies are to be written.