We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a42c6b9 + 3ca4af3 commit 00a3a46Copy full SHA for 00a3a46
1 file changed
TransactionProcessor/Startup.cs
@@ -164,7 +164,20 @@ public void ConfigureServices(IServiceCollection services)
164
{
165
return ConfigurationReader.GetBaseServerUri(serviceName).OriginalString;
166
});
167
- services.AddSingleton<HttpClient>();
+
168
+ var httpMessageHandler = new SocketsHttpHandler
169
+ {
170
+ SslOptions =
171
172
+ RemoteCertificateValidationCallback = (sender,
173
+ certificate,
174
+ chain,
175
+ errors) => true,
176
+ }
177
+ };
178
+ HttpClient httpClient = new HttpClient(httpMessageHandler);
179
+ services.AddSingleton(httpClient);
180
181
services.AddSingleton<IEstateClient, EstateClient>();
182
services.AddSingleton<IVoucherManagementClient, VoucherManagementClient>();
183
0 commit comments