< Summary

Class:Microsoft.Azure.Management.Search.OperationsExtensions
Assembly:Microsoft.Azure.Management.Search
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\OperationsExtensions.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:57
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
List(...)-0%100%
ListAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\OperationsExtensions.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Management.Search
 12{
 13    using Microsoft.Rest;
 14    using Microsoft.Rest.Azure;
 15    using Models;
 16    using System.Collections;
 17    using System.Collections.Generic;
 18    using System.Threading;
 19    using System.Threading.Tasks;
 20
 21    /// <summary>
 22    /// Extension methods for Operations.
 23    /// </summary>
 24    public static partial class OperationsExtensions
 25    {
 26            /// <summary>
 27            /// Lists all of the available REST API operations of the Microsoft.Search
 28            /// provider.
 29            /// </summary>
 30            /// <param name='operations'>
 31            /// The operations group for this extension method.
 32            /// </param>
 33            public static IEnumerable<Operation> List(this IOperations operations)
 34            {
 035                return operations.ListAsync().GetAwaiter().GetResult();
 36            }
 37
 38            /// <summary>
 39            /// Lists all of the available REST API operations of the Microsoft.Search
 40            /// provider.
 41            /// </summary>
 42            /// <param name='operations'>
 43            /// The operations group for this extension method.
 44            /// </param>
 45            /// <param name='cancellationToken'>
 46            /// The cancellation token.
 47            /// </param>
 48            public static async Task<IEnumerable<Operation>> ListAsync(this IOperations operations, CancellationToken ca
 49            {
 050                using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(
 51                {
 052                    return _result.Body;
 53                }
 054            }
 55
 56    }
 57}

Methods/Properties

List(...)
ListAsync()