/// <summary> /// The Get Media Services Account operation gets detailed information /// about a media services account in Windows Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/dn166974.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations. /// </param> /// <param name='accountName'> /// The name of the Media Services account. /// </param> /// <returns> /// The Get Media Services Account operation response. /// </returns> public static MediaServicesAccountGetResponse Get(this IAccountOperations operations, string accountName) { try { return(operations.GetAsync(accountName).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Get Media Services Account operation gets detailed information /// about a media services account in Windows Azure. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/dn166974.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations. /// </param> /// <param name='accountName'> /// Required. The name of the Media Services account. /// </param> /// <returns> /// The Get Media Services Account operation response. /// </returns> public static Task <MediaServicesAccountGetResponse> GetAsync(this IAccountOperations operations, string accountName) { return(operations.GetAsync(accountName, CancellationToken.None)); }
/// <summary> /// The Get operation gets detailed information about the specified /// Batch account. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Batch.IAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group that contains the Batch /// account. /// </param> /// <param name='accountName'> /// Required. The name of the account. /// </param> /// <returns> /// Values returned by the Get operation. /// </returns> public static Task <BatchAccountGetResponse> GetAsync(this IAccountOperations operations, string resourceGroupName, string accountName) { return(operations.GetAsync(resourceGroupName, accountName, CancellationToken.None)); }