1 override of GetClientCertificateAsync
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
86
public override Task<X509Certificate2?>
GetClientCertificateAsync
(CancellationToken cancellationToken = default)
13 references to GetClientCertificateAsync
InMemory.FunctionalTests (9)
HttpsConnectionMiddlewareTests.cs (9)
553
var clientCert = await context.Connection.
GetClientCertificateAsync
();
597
var clientCert = await context.Connection.
GetClientCertificateAsync
();
638
await Assert.ThrowsAsync<PlatformNotSupportedException>(() => context.Connection.
GetClientCertificateAsync
());
681
var clientCert = await context.Connection.
GetClientCertificateAsync
();
729
var clientCert = await context.Connection.
GetClientCertificateAsync
();
771
var clientCert = await context.Connection.
GetClientCertificateAsync
();
898
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Connection.
GetClientCertificateAsync
());
1038
var clientCert = await context.Connection.
GetClientCertificateAsync
();
1082
var ioe = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Connection.
GetClientCertificateAsync
());
Interop.FunctionalTests (2)
HttpClientHttp2InteropTests.cs (2)
1621
Assert.NotNull(await context.Connection.
GetClientCertificateAsync
());
1666
Assert.Null(await context.Connection.
GetClientCertificateAsync
());
Kestrel.SampleApp (1)
Startup.cs (1)
51
var cert = await context.Connection.
GetClientCertificateAsync
();
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
59
var clientCertificate = await Context.Connection.
GetClientCertificateAsync
();