internal SqlConnectionPoolKey(string connectionString, SqlCredential credential, string accessToken) : base(connectionString)
 {
     Debug.Assert(_credential == null || _accessToken == null, "Credential and AccessToken can't have the value at the same time.");
     _credential  = credential;
     _accessToken = accessToken;
     CalculateHashCode();
 }
示例#2
0
 private SqlConnectionPoolKey(SqlConnectionPoolKey key) : base(key)
 {
     _credential  = key.Credential;
     _accessToken = key.AccessToken;
     _serverCertificateValidationCallback = key._serverCertificateValidationCallback;
     _clientCertificateRetrievalCallback  = key._clientCertificateRetrievalCallback;
     CalculateHashCode();
 }
示例#3
0
 internal SqlConnectionPoolKey(string connectionString,
                               SqlCredential credential,
                               string accessToken,
                               ServerCertificateValidationCallback serverCertificateValidationCallback,
                               ClientCertificateRetrievalCallback clientCertificateRetrievalCallback,
                               SqlClientOriginalNetworkAddressInfo originalNetworkAddressInfo) : base(connectionString)
 {
     Debug.Assert(_credential == null || _accessToken == null, "Credential and AccessToken can't have the value at the same time.");
     _credential  = credential;
     _accessToken = accessToken;
     _serverCertificateValidationCallback = serverCertificateValidationCallback;
     _clientCertificateRetrievalCallback  = clientCertificateRetrievalCallback;
     _originalNetworkAddressInfo          = originalNetworkAddressInfo;
     CalculateHashCode();
 }
 private SqlConnectionPoolKey(SqlConnectionPoolKey key) : base(key)
 {
     _credential  = key.Credential;
     _accessToken = key.AccessToken;
     CalculateHashCode();
 }