Skip to content

[SF] HTTP client settings for Service Fabric? #892

Answered by Tratcher
linmeng08 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the code that maps those options (new in preview 10, #787):

HttpClient = new ProxyHttpClientOptions
{
DangerousAcceptAnyServerCertificate = GetLabel<bool?>(labels, "YARP.Backend.HttpClient.DangerousAcceptAnyServerCertificate", null),
MaxConnectionsPerServer = GetLabel<int?>(labels, "YARP.Backend.HttpClient.MaxConnectionsPerServer", null),
ActivityContextHeaders = !string.IsNullOrEmpty(activityContextHeadersLabel) ? Enum.Parse<ActivityContextHeaders>(activityContextHeadersLabel) : null,
SslProtocols = !string.IsNullOrEmpty(sslProtocolsLabel

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@linmeng08
Comment options

Answer selected by linmeng08
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