Beispiel #1
0
 /// <summary>
 /// Checks whether the custom host name maps to an Api Management
 /// service.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IResourceProviderOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='name'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the CheckCustomHostname operation.
 /// </param>
 /// <returns>
 /// The response of the CheckCustomHostname operation.
 /// </returns>
 public static Task <ApiServiceCheckCustomHostnameResponse> CheckCustomHostnameAsync(this IResourceProviderOperations operations, string resourceGroupName, string name, ApiServiceCheckCustomHostnameParameters parameters)
 {
     return(operations.CheckCustomHostnameAsync(resourceGroupName, name, parameters, CancellationToken.None));
 }
Beispiel #2
0
 /// <summary>
 /// Checks whether the custom host name maps to an Api Management
 /// service.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IResourceProviderOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='name'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the CheckCustomHostname operation.
 /// </param>
 /// <returns>
 /// The response of the CheckCustomHostname operation.
 /// </returns>
 public static ApiServiceCheckCustomHostnameResponse CheckCustomHostname(this IResourceProviderOperations operations, string resourceGroupName, string name, ApiServiceCheckCustomHostnameParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IResourceProviderOperations)s).CheckCustomHostnameAsync(resourceGroupName, name, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }