C# Class Microsoft.SqlServer.TDS.EndPoint.TDSParser

Generic TDS parser
Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
ResetTargetProtocol ( ) : void

Resets the targeted encryption protocol for the server.

SetTDSStreamPreWriteCallback ( Func funcTDSStreamPreWriteCallBack ) : void

Set PreWriteCallback func in Transport (TDSStream)

TDSParser ( Stream transport ) : System

Initialization constructor

Méthodes protégées

Méthode Description
DisableTransportEncryption ( ) : void

Disable transport encryption

EnableClientTransportEncryption ( string server ) : void

Enable transport encryption

EnableServerTransportEncryption ( X509Certificate certificate ) : void

Enable transport encryption

Log ( string text ) : void

Write a string to the log

Private Methods

Méthode Description
_ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Validate server certificate

Method Details

DisableTransportEncryption() protected méthode

Disable transport encryption
protected DisableTransportEncryption ( ) : void
Résultat void

EnableClientTransportEncryption() protected méthode

Enable transport encryption
protected EnableClientTransportEncryption ( string server ) : void
server string
Résultat void

EnableServerTransportEncryption() protected méthode

Enable transport encryption
protected EnableServerTransportEncryption ( X509Certificate certificate ) : void
certificate System.Security.Cryptography.X509Certificates.X509Certificate
Résultat void

Log() protected méthode

Write a string to the log
protected Log ( string text ) : void
text string
Résultat void

ResetTargetProtocol() public static méthode

Resets the targeted encryption protocol for the server.
public static ResetTargetProtocol ( ) : void
Résultat void

SetTDSStreamPreWriteCallback() public méthode

Set PreWriteCallback func in Transport (TDSStream)
public SetTDSStreamPreWriteCallback ( Func funcTDSStreamPreWriteCallBack ) : void
funcTDSStreamPreWriteCallBack Func
Résultat void

TDSParser() public méthode

Initialization constructor
public TDSParser ( Stream transport ) : System
transport Stream
Résultat System