Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 private SqlConnectionPoolKey(SqlConnectionPoolKey key) : base(key)
 {
     _credential  = key.Credential;
     _accessToken = key.AccessToken;
     _serverCertificateValidationCallback = key._serverCertificateValidationCallback;
     _clientCertificateRetrievalCallback  = key._clientCertificateRetrievalCallback;
     CalculateHashCode();
 }
Exemplo n.º 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();
 }
Exemplo n.º 4
0
 private SqlConnectionPoolKey(SqlConnectionPoolKey key) : base(key)
 {
     _credential  = key.Credential;
     _accessToken = key.AccessToken;
     CalculateHashCode();
 }