Skip to content
Discussion options

You must be logged in to vote

You can either assign a delegate to a method to create HttpClient instances yourself:

/// <inheritdoc/>
public Func<HttpClient> HttpClientFactory
{
get => this.httpClientFactory ?? this.DefaultHttpClientFactory;
set
{
Guard.ThrowIfNull(value);
this.httpClientFactory = value;
}
}

Or there's an HttpClientFactory integration (code).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martincostello
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