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

Generic TDS parser
ファイルを表示 Open project: dotnet/corefx

Public Methods

Method 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

Protected Methods

Method 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

Method Description
_ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Validate server certificate

Method Details

DisableTransportEncryption() protected method

Disable transport encryption
protected DisableTransportEncryption ( ) : void
return void

EnableClientTransportEncryption() protected method

Enable transport encryption
protected EnableClientTransportEncryption ( string server ) : void
server string
return void

EnableServerTransportEncryption() protected method

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

Log() protected method

Write a string to the log
protected Log ( string text ) : void
text string
return void

ResetTargetProtocol() public static method

Resets the targeted encryption protocol for the server.
public static ResetTargetProtocol ( ) : void
return void

SetTDSStreamPreWriteCallback() public method

Set PreWriteCallback func in Transport (TDSStream)
public SetTDSStreamPreWriteCallback ( Func funcTDSStreamPreWriteCallBack ) : void
funcTDSStreamPreWriteCallBack Func
return void

TDSParser() public method

Initialization constructor
public TDSParser ( Stream transport ) : System
transport Stream
return System