public void QueueExists() { #region QueueExistsAsync (TPL) IQueueingService queueingService = new CloudQueuesProvider(identity, region, clientId, internalUrl, identityProvider); QueueName queueName = new QueueName("ExampleQueue"); Task <bool> task = queueingService.QueueExistsAsync(queueName, CancellationToken.None); #endregion }
public async Task QueueExistsAsyncAwait() { #region QueueExistsAsync (await) IQueueingService queueingService = new CloudQueuesProvider(identity, region, clientId, internalUrl, identityProvider); QueueName queueName = new QueueName("ExampleQueue"); bool exists = await queueingService.QueueExistsAsync(queueName, CancellationToken.None); #endregion }
public void QueueExists() { #region QueueExistsAsync (TPL) IQueueingService queueingService = new CloudQueuesProvider(identity, region, clientId, internalUrl, identityProvider); QueueName queueName = new QueueName("ExampleQueue"); Task<bool> task = queueingService.QueueExistsAsync(queueName, CancellationToken.None); #endregion }