Example #1
0
 /// <summary>
 /// Get SQL pool operation status
 /// </summary>
 /// <remarks>
 /// Get the status of a SQL pool operation
 /// </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='sqlPoolName'>
 /// SQL pool name
 /// </param>
 /// <param name='operationId'>
 /// Operation ID
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLocationHeaderResultAsync(this ISqlPoolOperationResults operations, string resourceGroupName, string workspaceName, string sqlPoolName, string operationId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLocationHeaderResultWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Get SQL pool operation status
 /// </summary>
 /// <remarks>
 /// Get the status of a SQL pool operation
 /// </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='sqlPoolName'>
 /// SQL pool name
 /// </param>
 /// <param name='operationId'>
 /// Operation ID
 /// </param>
 public static object GetLocationHeaderResult(this ISqlPoolOperationResults operations, string resourceGroupName, string workspaceName, string sqlPoolName, string operationId)
 {
     return(operations.GetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).GetAwaiter().GetResult());
 }