Drey.Configuration.Infrastructure.HubConnectionManager.UseClientCertificate C# (CSharp) Method

UseClientCertificate() public method

Allows the use of a client certificate by the hubconnection for client identification by the server.
public UseClientCertificate ( X509Certificate2 cert ) : void
cert System.Security.Cryptography.X509Certificates.X509Certificate2 The cert.
return void
        public void UseClientCertificate(X509Certificate2 cert)
        {
            _log.DebugFormat("Was a certificate given? {wasGiven}", cert != null);
            _log.DebugFormat("Certificate CN={cn}", (cert == null ? string.Empty : cert.FriendlyName));
            _certificate = cert;
        }