/// <summary>
 /// Performs a connectivity check between the API Management service and a
 /// given destination, and returns metrics for the connection, as well as
 /// errors encountered while trying to establish it.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='connectivityCheckRequestParams'>
 /// Connectivity Check request parameters.
 /// </param>
 public static ConnectivityCheckResponse BeginPerformConnectivityCheckAsync(this IApiManagementClient operations, string resourceGroupName, string serviceName, ConnectivityCheckRequest connectivityCheckRequestParams)
 {
     return(operations.BeginPerformConnectivityCheckAsyncAsync(resourceGroupName, serviceName, connectivityCheckRequestParams).GetAwaiter().GetResult());
 }
 public ManagementController(IApiManagementClient apiManagementClient)
 {
     this._apiManagementClient = apiManagementClient;
 }
 /// <summary>
 /// Performs a connectivity check between the API Management service and a
 /// given destination, and returns metrics for the connection, as well as
 /// errors encountered while trying to establish it.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='connectivityCheckRequestParams'>
 /// Connectivity Check request parameters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConnectivityCheckResponse> PerformConnectivityCheckAsyncAsync(this IApiManagementClient operations, string resourceGroupName, string serviceName, ConnectivityCheckRequest connectivityCheckRequestParams, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PerformConnectivityCheckAsyncWithHttpMessagesAsync(resourceGroupName, serviceName, connectivityCheckRequestParams, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }