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