/// <summary> /// Get an overview of the state of the network resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AdminOverview> GetAsync(this IResourceProviderStateOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get an overview of the state of the network resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static AdminOverview Get(this IResourceProviderStateOperations operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }