< Summary

Class:Microsoft.Azure.Attestation.SigningCertificatesOperationsExtensions
Assembly:Microsoft.Azure.Attestation
File(s):C:\Git\azure-sdk-for-net\sdk\attestation\Microsoft.Azure.Attestation\src\Generated\SigningCertificatesOperationsExtensions.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:65
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
Get(...)-100%100%
GetAsync()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\attestation\Microsoft.Azure.Attestation\src\Generated\SigningCertificatesOperationsExtensions.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.Attestation
 12{
 13    using Microsoft.Rest;
 14    using Microsoft.Rest.Azure;
 15    using Models;
 16    using System.Threading;
 17    using System.Threading.Tasks;
 18
 19    /// <summary>
 20    /// Extension methods for SigningCertificatesOperations.
 21    /// </summary>
 22    public static partial class SigningCertificatesOperationsExtensions
 23    {
 24            /// <summary>
 25            /// Retrieves the OpenID Configuration data for the Azure Attestation Service
 26            /// </summary>
 27            /// <remarks>
 28            /// Retrieves attestation signing keys in use by the attestation service
 29            /// </remarks>
 30            /// <param name='operations'>
 31            /// The operations group for this extension method.
 32            /// </param>
 33            /// <param name='tenantBaseUrl'>
 34            /// The tenant name, for example https://mytenant.attest.azure.net.
 35            /// </param>
 36            public static object Get(this ISigningCertificatesOperations operations, string tenantBaseUrl)
 37            {
 238                return operations.GetAsync(tenantBaseUrl).GetAwaiter().GetResult();
 39            }
 40
 41            /// <summary>
 42            /// Retrieves the OpenID Configuration data for the Azure Attestation Service
 43            /// </summary>
 44            /// <remarks>
 45            /// Retrieves attestation signing keys in use by the attestation service
 46            /// </remarks>
 47            /// <param name='operations'>
 48            /// The operations group for this extension method.
 49            /// </param>
 50            /// <param name='tenantBaseUrl'>
 51            /// The tenant name, for example https://mytenant.attest.azure.net.
 52            /// </param>
 53            /// <param name='cancellationToken'>
 54            /// The cancellation token.
 55            /// </param>
 56            public static async Task<object> GetAsync(this ISigningCertificatesOperations operations, string tenantBaseU
 57            {
 258                using (var _result = await operations.GetWithHttpMessagesAsync(tenantBaseUrl, null, cancellationToken).C
 59                {
 260                    return _result.Body;
 61                }
 262            }
 63
 64    }
 65}

Methods/Properties

Get(...)
GetAsync()