/// <summary> /// Get Service Configuration. /// </summary> /// <remarks> /// Get the Personalizer service configuration. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ServiceConfiguration> GetAsync(this IServiceConfigurationOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Service Configuration. /// </summary> /// <remarks> /// Get the Personalizer service configuration. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <ServiceConfiguration> GetWithHttpMessages(this IServiceConfigurationOperations operations, Dictionary <string, List <string> > customHeaders = null) { return(operations.GetWithHttpMessagesAsync(customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }