/// <summary> /// Gets a container by name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='storageAccountName'> /// The Storage Account Name /// </param> /// <param name='containerName'> /// The container Name /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Container> GetAsync(this IContainersOperations operations, string deviceName, string storageAccountName, string containerName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, storageAccountName, containerName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }