Skip to content

Add a new API to allow custom client options #106

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 @jimmyca15

Metadata

Metadata

Assignees

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