Skip to content

Add a new API to allow custom client options #106

Closed

Description

@zhenlan

Proposed API

public AzureAppConfigurationOptions ConfigureClientOptions(Action<ConfigurationClientOptions> options)

This API should allow a user to overwirte the properties of ConfigurationClientOptions we use by default.

For example, in the case of Azure/AppConfiguration#179, the customer can do

using HttpClient client = new HttpClient(
    new HttpClientHandler()
    {
        Proxy = new WebProxy(new Uri("http://example.com"))
    });

builder.AddAzureAppConfiguration(o =>
    o.Connect(...)
     .ConfigureClientOptions(co => co.Transport = new HttpClientTransport(client));
)

Reference here.

cc: Drago Draganov (@drago-draganov) Jimmy Campbell (@jimmyca15)

Activity

  1. abhilasharora commented on Feb 22, 2020

    @abhilasharora
    Contributor

    This feature has been released as a part of version 3.0.0 of the package Microsoft.Extensions.Configuration.AzureAppConfiguration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions