/// <summary> /// Get all security controls within a scope /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// OData expand. Optional. Possible values include: 'definition' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SecureScoreControlDetails> > ListAsync(this ISecureScoreControlsOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get all security controls within a scope /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// OData expand. Optional. Possible values include: 'definition' /// </param> public static IPage <SecureScoreControlDetails> List(this ISecureScoreControlsOperations operations, string expand = default(string)) { return(operations.ListAsync(expand).GetAwaiter().GetResult()); }
/// <summary> /// Get all security controls within a scope /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <SecureScoreControlDetails> ListNext(this ISecureScoreControlsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }