public static async Task <SqlPoolConnectionPolicy> GetAsync(this ISqlPoolConnectionPoliciesOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static SqlPoolConnectionPolicy Get(this ISqlPoolConnectionPoliciesOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName) { return(operations.GetAsync(resourceGroupName, workspaceName, sqlPoolName).GetAwaiter().GetResult()); }