/// <summary> /// Retrieves the OpenID Configuration data for the Azure Attestation Service /// </summary> /// <remarks> /// Retrieves attestation signing keys in use by the attestation service /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantBaseUrl'> /// The tenant name, for example https://mytenant.attest.azure.net. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetAsync(this ICertsOperations operations, string tenantBaseUrl, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(tenantBaseUrl, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves the OpenID Configuration data for the Azure Attestation Service /// </summary> /// <remarks> /// Retrieves attestation signing keys in use by the attestation service /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantBaseUrl'> /// The tenant name, for example https://mytenant.attest.azure.net. /// </param> public static object Get(this ICertsOperations operations, string tenantBaseUrl) { return(operations.GetAsync(tenantBaseUrl).GetAwaiter().GetResult()); }