Skip to content

Credentials in WmsProvider.CreateAsync #2466

Answered by pauldendulk
Thoronion asked this question in Q&A
Discussion options

You must be logged in to vote

ah, I see. This is a common problem we have in our api design. The HttpClient is created deep inside. Also we do not want to offer all possible ways in which an HttpClient can be instantiated. Creating the HttpClient should be more on the surface, or on the outside.

In this case it looks like you can do you own request (in which you create your own HttpClient) by passing in the getStreamAsync function of Client.CreateAsync.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Thoronion
Comment options

@pauldendulk
Comment options

Answer selected by Thoronion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants