/// <summary> /// Get integration runtime status /// </summary> /// <remarks> /// Get the integration runtime status /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='integrationRuntimeName'> /// Integration runtime name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IntegrationRuntimeStatusResponse> GetAsync(this IIntegrationRuntimeStatusOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get integration runtime status /// </summary> /// <remarks> /// Get the integration runtime status /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='integrationRuntimeName'> /// Integration runtime name /// </param> public static IntegrationRuntimeStatusResponse Get(this IIntegrationRuntimeStatusOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName) { return(operations.GetAsync(resourceGroupName, workspaceName, integrationRuntimeName).GetAwaiter().GetResult()); }