We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fa700f + e0684a7 commit 970e7c9Copy full SHA for 970e7c9
MessagingService/Startup.cs
@@ -163,7 +163,18 @@ public void ConfigureServices(IServiceCollection services)
163
{
164
return ConfigurationReader.GetBaseServerUri(serviceName).OriginalString;
165
});
166
- services.AddSingleton<HttpClient>();
+ var httpMessageHandler = new SocketsHttpHandler
167
+ {
168
+ SslOptions =
169
170
+ RemoteCertificateValidationCallback = (sender,
171
+ certificate,
172
+ chain,
173
+ errors) => true,
174
+ }
175
+ };
176
+ HttpClient httpClient = new HttpClient(httpMessageHandler);
177
+ services.AddSingleton(httpClient);
178
179
Dictionary<String, String[]> eventHandlersConfiguration = new Dictionary<String, String[]>();
180
0 commit comments