Click or drag to resize
CloudQueuesProviderGetQueueMetadataAsyncT Method (QueueName, CancellationToken)
This API is preliminary and subject to change.
Gets the metadata associated with a queue, as a strongly-typed object.

Namespace: net.openstack.Providers.Rackspace
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public Task<T> GetQueueMetadataAsync<T>(
	QueueName queueName,
	CancellationToken cancellationToken
)
where T : class

Parameters

queueName
Type: net.openstack.Core.Domain.QueuesQueueName
The queue name.
cancellationToken
Type: System.ThreadingCancellationToken
The CancellationToken that the task will observe.

Type Parameters

T
The type of metadata associated with the queue.

Return Value

Type: TaskT
A Task object representing the asynchronous operation. When the task completes successfully, the Result property will contain a deserialized object of type T representing the metadata associated with the queue.

Implements

IQueueingServiceGetQueueMetadataAsyncT(QueueName, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionIf queueName is .
JsonSerializationExceptionIf an error occurs while deserializing the metadata.
WebExceptionIf the REST request does not return successfully.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also