Exemple #1
0
 /// <summary>
 /// The List Client Root Certificates operation returns a list of all
 /// the client root certificates that are associated with the
 /// specified virtual network in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205130.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations.
 /// </param>
 /// <param name='virtualNetworkName'>
 /// The name of the virtual network for this gateway.
 /// </param>
 /// <returns>
 /// The response to the list client root certificates request.
 /// </returns>
 public static ClientRootCertificateListResponse List(this IClientRootCertificateOperations operations, string virtualNetworkName)
 {
     try
     {
         return(operations.ListAsync(virtualNetworkName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// The List Client Root Certificates operation returns a list of all
 /// the client root certificates that are associated with the
 /// specified virtual network in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205130.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <returns>
 /// The response for the List Client Root Certificates operation.
 /// </returns>
 public static Task <ClientRootCertificateListResponse> ListAsync(this IClientRootCertificateOperations operations, string networkName)
 {
     return(operations.ListAsync(networkName, CancellationToken.None));
 }