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.
1 parent 7b3f2ce commit 279f596Copy full SHA for 279f596
src/DefaultBuilder/test/Microsoft.AspNetCore.TrimmingTests/UseHttpsDoesDependOnX509Test.cs
@@ -1,3 +1,4 @@
1
+using System.Security.Cryptography.X509Certificates;
2
using Microsoft.AspNetCore.Builder;
3
using Microsoft.AspNetCore.Hosting;
4
@@ -7,7 +8,9 @@
7
8
{
9
serverOptions.ListenLocalhost(5000, listenOptions =>
10
- listenOptions.UseHttps();
11
+#pragma warning disable SYSLIB0026 // The constructor obsolete but we're not actually going to use the cert
12
+ listenOptions.UseHttps(new X509Certificate2());
13
+#pragma warning restore SYSLIB0026
14
});
15
16
0 commit comments